From 787e91259126294e6feb511d60992e67d65d58d6 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Wed, 29 Feb 2012 20:40:25 +0000 Subject: [PATCH] Fixes to AWT textures blending. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9222 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../plugins/blender/textures/blending/TextureBlenderAWT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/TextureBlenderAWT.java b/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/TextureBlenderAWT.java index 75fc0c573..918072e41 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/TextureBlenderAWT.java +++ b/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));