提交 90a53162 编写于 作者: S sunag

cleanup requires.rradiance

上级 d00bbf3c
......@@ -156,9 +156,15 @@ StandardNode.prototype.build = function ( builder ) {
if ( this.environment ) {
// isolate environment from others inputs ( see TextureNode, CubeTextureNode )
// environment.analyze will detect if there is a need of calculate irradiance
this.environment.analyze( builder, { cache: 'radiance', context: contextEnvironment, slot: 'radiance' } );
this.environment.analyze( builder, { cache: 'irradiance', context: contextEnvironment, slot: 'irradiance' } );
if ( builder.requires.irradiance ) {
this.environment.analyze( builder, { cache: 'irradiance', context: contextEnvironment, slot: 'irradiance' } );
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册