| | |
| | | |
| | | // scene/demo-specific three.js objects setup goes here |
| | | sceneIsDynamic = true; |
| | | |
| | | |
| | | cameraFlightSpeed = 300; |
| | | |
| | | // pixelRatio is resolution - range: 0.5(half resolution) to 1.0(full resolution) |
| | |
| | | pathTracingUniforms.uSunDirection.value.copy(sunDirection); |
| | | |
| | | // INFO |
| | | cameraInfoElement.innerHTML = "FOV: " + worldCamera.fov + " / Aperture: " + apertureSize.toFixed(2) + " / FocusDistance: " + focusDistance + "<br>" + "Samples: " + sampleCounter; |
| | | // cameraInfoElement.innerHTML = "FOV: " + worldCamera.fov + " / Aperture: " + apertureSize.toFixed(2) + " / FocusDistance: " + focusDistance + "<br>" + "Samples: " + sampleCounter; |
| | | |
| | | } // end function updateUniforms() |
| | | |