From 05e805403b9f9608e851055d5e831eadbce20f4a Mon Sep 17 00:00:00 2001 From: Alessandro Borges Date: Tue, 24 Feb 2009 23:35:23 +0000 Subject: Issue number: 609 Obtained from: Submitted by: InteractiveMesh Reviewed by: Aces Issue : Transparency fails under Color4b, works under Color4f There was a typo error, where operator AND '&' was replaced by '*' git-svn-id: https://svn.java.net/svn/j3d-core~svn/branches/dev-1_6@941 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/classes/share/javax/media/j3d/GeometryArrayRetained.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/classes/share/javax') diff --git a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java index f53cb84..8a445b1 100644 --- a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java +++ b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java @@ -4197,9 +4197,9 @@ abstract class GeometryArrayRetained extends GeometryRetained{ } dirtyFlag |= COLOR_CHANGED; colorChanged = 0xffff; - this.vertexData[offset] = (color.x * 0xff) * ByteToFloatScale; - this.vertexData[offset+1] = (color.y * 0xff) * ByteToFloatScale; - this.vertexData[offset+2] = (color.z * 0xff) * ByteToFloatScale; + this.vertexData[offset] = (color.x & 0xff) * ByteToFloatScale; + this.vertexData[offset+1] = (color.y & 0xff) * ByteToFloatScale; + this.vertexData[offset+2] = (color.z & 0xff) * ByteToFloatScale; this.vertexData[offset+3] = ((color.w & 0xff) * ByteToFloatScale)*lastAlpha[0]; if(isLive){ -- cgit v1.2.3