Browse Source

Fixes const error in shader.

Ian Kerr 12 years ago
parent
commit
b9544bbec0
1 changed files with 2 additions and 2 deletions
  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 );",