소스 검색

Fixes const error in shader.

Ian Kerr 12 년 전
부모
커밋
b9544bbec0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/renderers/WebGLShaders.js

+ 2 - 2
src/renderers/WebGLShaders.js

@@ -1260,8 +1260,8 @@ THREE.ShaderChunk = {
 					"float x = mod( j, float( boneTextureWidth ) );",
 					"float y = floor( j / float( boneTextureWidth ) );",
 
-					"const float dx = 1.0 / float( boneTextureWidth );",
-					"const float dy = 1.0 / float( boneTextureHeight );",
+					"float dx = 1.0 / float( boneTextureWidth );",
+					"float dy = 1.0 / float( boneTextureHeight );",
 
 					"y = dy * ( y + 0.5 );",