Skip to content

Commit

Permalink
Fix compile failure
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jan 16, 2024
1 parent b604b63 commit 9b74f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/materials/pathtracing/glsl/traceScene.glsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const traceSceneGLSL = /* glsl */`
if ( fogMaterial.fogVolume ) {
float particleDist = intersectFogVolume( fogMaterial, sobol( 1 ) );
if ( particleDist + 1e-4 < surfaceHit.dist && ( particleDist + 1e-4 < lightRec.dist || ! lightHit ) ) {
if ( particleDist + 1e-4 < surfaceHit.dist && ( particleDist + 1e-4 < lightRec.dist ) ) {
surfaceHit.side = 1.0;
surfaceHit.faceNormal = normalize( - ray.direction );
Expand Down

0 comments on commit 9b74f11

Please sign in to comment.