|
@@ -120,7 +120,7 @@ THREE.StandardNode.prototype.build = function( builder ) {
|
|
|
if ( this.normalScale && this.normal ) this.normalScale.verify( builder );
|
|
|
|
|
|
if ( this.environment ) this.environment.verify( builder, 'env', requires ); // isolate environment from others inputs ( see TextureNode, CubeTextureNode )
|
|
|
- if ( this.environmentAlpha && this.environment ) this.environmentAlpha.verify( builder );
|
|
|
+ if ( this.environmentIntensity && this.environment ) this.environmentIntensity.verify( builder );
|
|
|
|
|
|
// build code
|
|
|
|
|
@@ -139,7 +139,7 @@ THREE.StandardNode.prototype.build = function( builder ) {
|
|
|
var normalScale = this.normalScale && this.normal ? this.normalScale.buildCode( builder, 'v2' ) : undefined;
|
|
|
|
|
|
var environment = this.environment ? this.environment.buildCode( builder, 'c', 'env', requires ) : undefined;
|
|
|
- var environmentAlpha = this.environmentAlpha && this.environment ? this.environmentAlpha.buildCode( builder, 'fv1' ) : undefined;
|
|
|
+ var environmentIntensity = this.environmentIntensity && this.environment ? this.environmentIntensity.buildCode( builder, 'fv1' ) : undefined;
|
|
|
|
|
|
material.requestAttrib.transparent = alpha != undefined;
|
|
|
|
|
@@ -254,10 +254,10 @@ THREE.StandardNode.prototype.build = function( builder ) {
|
|
|
output.push( environment.code );
|
|
|
output.push( "RE_IndirectSpecular(" + environment.result + ", geometry, material, reflectedLight );" );
|
|
|
|
|
|
- if ( environmentAlpha ) {
|
|
|
+ if ( environmentIntensity ) {
|
|
|
|
|
|
- output.push( environmentAlpha.code );
|
|
|
- output.push( "reflectedLight.indirectSpecular *= " + environmentAlpha.result + ";" );
|
|
|
+ output.push( environmentIntensity.code );
|
|
|
+ output.push( "reflectedLight.indirectSpecular *= " + environmentIntensity.result + ";" );
|
|
|
|
|
|
}
|
|
|
|