|
@@ -305,13 +305,13 @@ class Renderer extends h3d.scene.Renderer {
|
|
|
|
|
|
beforeIndirect();
|
|
beforeIndirect();
|
|
mark("Indirect Lighting");
|
|
mark("Indirect Lighting");
|
|
- indirectLighting();
|
|
|
|
|
|
+ doIndirectLighting();
|
|
afterIndirect();
|
|
afterIndirect();
|
|
|
|
|
|
end();
|
|
end();
|
|
}
|
|
}
|
|
|
|
|
|
- function indirectLighting() {
|
|
|
|
|
|
+ function doIndirectLighting() {
|
|
if( !renderLightProbes() && indirectEnv && env != null && env.power > 0.0 ) {
|
|
if( !renderLightProbes() && indirectEnv && env != null && env.power > 0.0 ) {
|
|
pbrProps.isScreen = true;
|
|
pbrProps.isScreen = true;
|
|
pbrIndirect.drawIndirectDiffuse = true;
|
|
pbrIndirect.drawIndirectDiffuse = true;
|