HomeSort by relevance Sort by last modified time
    Searched refs:oneMinusFactor (Results 1 - 2 of 2) sorted by null

  /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/
AbstractTextureBlender.java 31 float oneMinusFactor = 1.0f - blendFactor, col;
35 result[0] = blendFactor * pixelColor[0] + oneMinusFactor * materialColor[0];
36 result[1] = blendFactor * pixelColor[1] + oneMinusFactor * materialColor[1];
37 result[2] = blendFactor * pixelColor[2] + oneMinusFactor * materialColor[2];
40 result[0] = (oneMinusFactor + blendFactor * materialColor[0]) * pixelColor[0];
41 result[1] = (oneMinusFactor + blendFactor * materialColor[1]) * pixelColor[1];
42 result[2] = (oneMinusFactor + blendFactor * materialColor[2]) * pixelColor[2];
46 result[0] = (oneMinusFactor * materialColor[0] + blendFactor * materialColor[0] / pixelColor[0]) * 0.5f;
49 result[1] = (oneMinusFactor * materialColor[1] + blendFactor * materialColor[1] / pixelColor[1]) * 0.5f;
52 result[2] = (oneMinusFactor * materialColor[2] + blendFactor * materialColor[2] / pixelColor[2]) * 0.5f;
    [all...]
TextureBlenderLuminance.java 123 float oneMinusFactor, col;
128 oneMinusFactor = 1.0f - textureIntensity;
129 result[0] = textureIntensity * color[0] + oneMinusFactor * materialColor[0];
130 result[1] = textureIntensity * color[1] + oneMinusFactor * materialColor[1];
131 result[2] = textureIntensity * color[2] + oneMinusFactor * materialColor[2];
134 oneMinusFactor = 1.0f - textureFactor;
135 result[0] = (oneMinusFactor + textureIntensity * materialColor[0]) * color[0];
136 result[1] = (oneMinusFactor + textureIntensity * materialColor[1]) * color[1];
137 result[2] = (oneMinusFactor + textureIntensity * materialColor[2]) * color[2];
140 oneMinusFactor = 1.0f - textureIntensity;
    [all...]

Completed in 2401 milliseconds