Skip to content

Commit

Permalink
WebGLRenderer: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 4, 2020
1 parent 9be3b98 commit 4744272
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1521,8 +1521,6 @@ function WebGLRenderer( parameters ) {

}

materialProperties.environment = material.isMeshStandardMaterial ? scene.environment : null;

var programAttributes = program.getAttributes();

if ( material.morphTargets ) {
Expand Down Expand Up @@ -1569,6 +1567,7 @@ function WebGLRenderer( parameters ) {

}

materialProperties.environment = material.isMeshStandardMaterial ? scene.environment : null;
materialProperties.fog = scene.fog;

// store the light setup it was created for
Expand Down

0 comments on commit 4744272

Please sign in to comment.