提交 c1b9f2ea 编写于 作者: M Mr.doob

Updated builds.

上级 a63aa11f
......@@ -26145,7 +26145,7 @@ THREE.WebGLRenderer = function ( parameters ) {
} else if ( material instanceof THREE.PointsMaterial ) {
refreshUniformsParticle( m_uniforms, material );
refreshUniformsPoints( m_uniforms, material );
} else if ( material instanceof THREE.MeshPhongMaterial ) {
......@@ -26293,11 +26293,11 @@ THREE.WebGLRenderer = function ( parameters ) {
}
function refreshUniformsParticle ( uniforms, material ) {
function refreshUniformsPoints ( uniforms, material ) {
uniforms.psColor.value = material.color;
uniforms.opacity.value = material.opacity;
uniforms.size.value = material.size;
uniforms.size.value = material.size * pixelRatio;
uniforms.scale.value = _canvas.height / 2.0; // TODO: Cache this.
uniforms.map.value = material.map;
......@@ -26658,11 +26658,11 @@ THREE.WebGLRenderer = function ( parameters ) {
// TODO: Optimize this.
for( var propertyName in uniform.properties ) {
var property = uniform.properties[ propertyName ];
var locationProperty = location[ propertyName ];
var valueProperty = value[ propertyName ];
switch( property.type ) {
case 'f':
_gl.uniform1f( locationProperty, valueProperty );
......@@ -26691,11 +26691,11 @@ THREE.WebGLRenderer = function ( parameters ) {
for( var i = 0; i < value.length; i ++ ) {
for( var propertyName in uniform.properties ) {
var property = uniform.properties[ propertyName ];
var locationProperty = location[ i ][ propertyName ];
var valueProperty = value[i][ propertyName ];
switch( property.type ) {
case 'f':
_gl.uniform1f( locationProperty, valueProperty );
......@@ -26717,7 +26717,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
}
break;
case 'iv1':
......@@ -27005,7 +27005,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
var lightUniforms = light.__webglUniforms;
zlights.directional.push( lightUniforms );
zlights.directional.push( lightUniforms );
if ( ! light.visible ) {
lightUniforms.color.setRGB( 0, 0, 0 );
......@@ -27031,7 +27031,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
var lightUniforms = light.__webglUniforms;
zlights.point.push( lightUniforms );
zlights.point.push( lightUniforms );
if ( ! light.visible ) {
lightUniforms.color.setRGB( 0, 0, 0 );
......@@ -27059,7 +27059,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
var lightUniforms = light.__webglUniforms;
zlights.spot.push( lightUniforms );
zlights.spot.push( lightUniforms );
if ( ! light.visible ) {
lightUniforms.color.setRGB( 0, 0, 0 );
......@@ -27092,7 +27092,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
var lightUniforms = light.__webglUniforms;
zlights.hemi.push( lightUniforms );
zlights.hemi.push( lightUniforms );
if ( ! light.visible ) {
lightUniforms.skyColor.setRGB( 0, 0, 0 );
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册