Просмотр исходного кода

supportsBoneTextures to floatVertexTextures

gero3 10 лет назад
Родитель
Сommit
79e283a560
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/renderers/WebGLRenderer.js

+ 2 - 2
src/renderers/WebGLRenderer.js

@@ -1775,7 +1775,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 			}
 
-			if ( capabilities.supportsBoneTextures && object.skeleton && object.skeleton.useVertexTexture ) {
+			if ( capabilities.floatVertexTextures && object.skeleton && object.skeleton.useVertexTexture ) {
 
 				if ( p_uniforms.boneTexture !== undefined ) {
 
@@ -3484,7 +3484,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 	function allocateBones ( object ) {
 
-		if ( capabilities.supportsBoneTextures && object && object.skeleton && object.skeleton.useVertexTexture ) {
+		if ( capabilities.floatVertexTextures && object && object.skeleton && object.skeleton.useVertexTexture ) {
 
 			return 1024;
 

粤ICP备19079148号