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

Added deprecation warning to WebGLRenderer/.supportsVertexTextures() (#10037)

Lewy Blue 8 лет назад
Родитель
Сommit
a03e57a106
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/Three.Legacy.js

+ 1 - 0
src/Three.Legacy.js

@@ -575,6 +575,7 @@ Object.assign( WebGLRenderer.prototype, {
 		return this.extensions.get( 'EXT_blend_minmax' );
 	},
 	supportsVertexTextures: function () {
+		console.warn( 'THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures.' );
 		return this.capabilities.vertexTextures;
 	},
 	supportsInstancedArrays: function () {