Browse Source

fixed colorKey (exact color)

ncannasse 11 years ago
parent
commit
04f865b54d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h2d/Drawable.hx

+ 1 - 1
h2d/Drawable.hx

@@ -64,7 +64,7 @@ private class DrawableShader extends h3d.impl.Shader {
 			var col = tex.get(sinusDeform != null ? [tuv.x + sin(tuv.y * sinusDeform.y + sinusDeform.x) * sinusDeform.z, tuv.y] : tuv, filter = ! !filter, wrap = tileWrap);
 			if( hasColorKey ) {
 				var cdiff = col.rgb - colorKey.rgb;
-				kill(cdiff.dot(cdiff) - 0.001);
+				kill(cdiff.dot(cdiff) - 0.00001);
 			}
 			if( killAlpha ) kill(col.a - 0.001);
 			if( hasVertexAlpha ) col.a *= talpha;