This repository was archived by the owner on Nov 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { EnvironmentLight } from './EnvironmentLight';
55import { RayTracingMaterial } from './RayTracingMaterial' ;
66import { RayTracingRenderer } from './RayTracingRenderer' ;
77
8- /* global THREE */
9- if ( THREE ) {
8+ if ( window . THREE ) {
9+ /* global THREE */
1010 THREE . LensCamera = LensCamera ;
1111 THREE . SoftDirectionalLight = SoftDirectionalLight ;
1212 THREE . EnvironmentLight = EnvironmentLight ;
Original file line number Diff line number Diff line change 11import * as THREE from 'three' ;
22import fragString from './glsl/rayTrace.frag' ;
3+ import { EnvironmentLight } from '../EnvironmentLight' ;
34import { createShader , createProgram , getUniforms } from './glUtil' ;
45import { mergeMeshesToGeometry } from './mergeMeshesToGeometry' ;
56import { bvhAccel , flattenBvh } from './bvhAccel' ;
@@ -266,7 +267,7 @@ function decomposeScene(scene) {
266267 if ( child instanceof THREE . DirectionalLight ) {
267268 directionalLights . push ( child ) ;
268269 }
269- if ( child instanceof THREE . EnvironmentLight ) {
270+ if ( child instanceof EnvironmentLight ) {
270271 if ( environmentLights . length > 1 ) {
271272 console . warn ( environmentLights , 'only one environment light can be used per scene' ) ;
272273 }
You can’t perform that action at this time.
0 commit comments