Fixes to AWT textures blending.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9222 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Kae..pl 13 years ago
parent 491d514c0f
commit 787e912591
  1. 4
      engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/TextureBlenderAWT.java

@ -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…
Cancel
Save