소스 검색

fixed colorKey (exact color)

ncannasse 11 년 전
부모
커밋
04f865b54d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;