Fixes to AWT textures blending.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9222 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
491d514c0f
commit
787e912591
@ -56,8 +56,8 @@ public class TextureBlenderAWT extends AbstractTextureBlender {
|
||||
float[] resultPixel = new float[4];
|
||||
int dataIndex = 0;
|
||||
while (data.hasRemaining()) {
|
||||
float tin = this.setupMaterialColor(data, format, neg, pixelColor);
|
||||
this.blendPixel(resultPixel, materialColor, color, tin, blendType, blenderContext);
|
||||
this.setupMaterialColor(data, format, neg, pixelColor);
|
||||
this.blendPixel(resultPixel, materialColor, pixelColor, affectFactor, blendType, blenderContext);
|
||||
newData.put(dataIndex++, (byte) (resultPixel[0] * 255.0f));
|
||||
newData.put(dataIndex++, (byte) (resultPixel[1] * 255.0f));
|
||||
newData.put(dataIndex++, (byte) (resultPixel[2] * 255.0f));
|
||||
|
Loading…
x
Reference in New Issue
Block a user