diff --git a/examples/webgl_postprocessing_godrays.html b/examples/webgl_postprocessing_godrays.html index b06c123a17a1a1..fb50f21bcbf8ec 100644 --- a/examples/webgl_postprocessing_godrays.html +++ b/examples/webgl_postprocessing_godrays.html @@ -73,14 +73,11 @@ materialDepth = new THREE.MeshDepthMaterial(); - const materialScene = new THREE.MeshBasicMaterial( { color: 0x000000 } ); - // tree const loader = new OBJLoader(); loader.load( 'models/obj/tree.obj', function ( object ) { - object.material = materialScene; object.position.set( 0, - 150, - 150 ); object.scale.multiplyScalar( 400 ); scene.add( object ); @@ -90,7 +87,7 @@ // sphere const geo = new THREE.SphereGeometry( 1, 20, 10 ); - sphereMesh = new THREE.Mesh( geo, materialScene ); + sphereMesh = new THREE.Mesh( geo, new THREE.MeshBasicMaterial( { color: 0x000000 } ) ); sphereMesh.scale.multiplyScalar( 20 ); scene.add( sphereMesh );