提交 167486b6 编写于 作者: A alteredq

Removed forgotten commented out code.

上级 8736f3b3
......@@ -20375,32 +20375,6 @@ THREE.WebGLRenderer = function ( parameters ) {
var attributes = material.program.attributes;
/*
if ( attributes.position >= 0 ) _gl.enableVertexAttribArray( attributes.position );
if ( attributes.color >= 0 ) _gl.enableVertexAttribArray( attributes.color );
if ( attributes.normal >= 0 ) _gl.enableVertexAttribArray( attributes.normal );
if ( attributes.tangent >= 0 ) _gl.enableVertexAttribArray( attributes.tangent );
if ( attributes.lineDistance >= 0 ) _gl.enableVertexAttribArray( attributes.lineDistance );
if ( material.skinning &&
attributes.skinIndex >= 0 && attributes.skinWeight >= 0 ) {
_gl.enableVertexAttribArray( attributes.skinIndex );
_gl.enableVertexAttribArray( attributes.skinWeight );
}
if ( material.attributes ) {
for ( a in material.attributes ) {
if ( attributes[ a ] !== undefined && attributes[ a ] >= 0 ) _gl.enableVertexAttribArray( attributes[ a ] );
}
}
*/
if ( material.morphTargets ) {
material.numSupportedMorphTargets = 0;
......@@ -20413,7 +20387,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( attributes[ id ] >= 0 ) {
//_gl.enableVertexAttribArray( attributes[ id ] );
material.numSupportedMorphTargets ++;
}
......@@ -20434,7 +20407,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( attributes[ id ] >= 0 ) {
//_gl.enableVertexAttribArray( attributes[ id ] );
material.numSupportedMorphNormals ++;
}
......@@ -33770,8 +33742,6 @@ THREE.LensFlarePlugin = function ( ) {
_lensFlare.uniforms.rotation = _gl.getUniformLocation( _lensFlare.program, "rotation" );
_lensFlare.uniforms.screenPosition = _gl.getUniformLocation( _lensFlare.program, "screenPosition" );
_lensFlare.attributesEnabled = false;
};
......@@ -33810,15 +33780,9 @@ THREE.LensFlarePlugin = function ( ) {
_gl.useProgram( _lensFlare.program );
if ( ! _lensFlare.attributesEnabled ) {
_gl.enableVertexAttribArray( _lensFlare.attributes.vertex );
_gl.enableVertexAttribArray( _lensFlare.attributes.uv );
_lensFlare.attributesEnabled = true;
}
// loop through all lens flares to update their occlusion and positions
// setup gl and common used attribs/unforms
......@@ -34552,8 +34516,6 @@ THREE.SpritePlugin = function ( ) {
_sprite.uniforms.fogFar = _gl.getUniformLocation( _sprite.program, "fogFar" );
_sprite.uniforms.fogColor = _gl.getUniformLocation( _sprite.program, "fogColor" );
_sprite.attributesEnabled = false;
};
this.render = function ( scene, camera, viewportWidth, viewportHeight ) {
......@@ -34577,15 +34539,9 @@ THREE.SpritePlugin = function ( ) {
_gl.useProgram( _sprite.program );
if ( ! _sprite.attributesEnabled ) {
_gl.enableVertexAttribArray( attributes.position );
_gl.enableVertexAttribArray( attributes.uv );
_sprite.attributesEnabled = true;
}
_gl.disable( _gl.CULL_FACE );
_gl.enable( _gl.BLEND );
_gl.depthMask( true );
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -4853,32 +4853,6 @@ THREE.WebGLRenderer = function ( parameters ) {
var attributes = material.program.attributes;
/*
if ( attributes.position >= 0 ) _gl.enableVertexAttribArray( attributes.position );
if ( attributes.color >= 0 ) _gl.enableVertexAttribArray( attributes.color );
if ( attributes.normal >= 0 ) _gl.enableVertexAttribArray( attributes.normal );
if ( attributes.tangent >= 0 ) _gl.enableVertexAttribArray( attributes.tangent );
if ( attributes.lineDistance >= 0 ) _gl.enableVertexAttribArray( attributes.lineDistance );
if ( material.skinning &&
attributes.skinIndex >= 0 && attributes.skinWeight >= 0 ) {
_gl.enableVertexAttribArray( attributes.skinIndex );
_gl.enableVertexAttribArray( attributes.skinWeight );
}
if ( material.attributes ) {
for ( a in material.attributes ) {
if ( attributes[ a ] !== undefined && attributes[ a ] >= 0 ) _gl.enableVertexAttribArray( attributes[ a ] );
}
}
*/
if ( material.morphTargets ) {
material.numSupportedMorphTargets = 0;
......@@ -4891,7 +4865,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( attributes[ id ] >= 0 ) {
//_gl.enableVertexAttribArray( attributes[ id ] );
material.numSupportedMorphTargets ++;
}
......@@ -4912,7 +4885,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( attributes[ id ] >= 0 ) {
//_gl.enableVertexAttribArray( attributes[ id ] );
material.numSupportedMorphNormals ++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册