@takram/three-clouds 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/shared.cjs +0 -1
- package/build/shared.cjs.map +1 -1
- package/build/shared.js +0 -1
- package/build/shared.js.map +1 -1
- package/package.json +1 -1
- package/src/shaders/clouds.frag +0 -1
package/package.json
CHANGED
package/src/shaders/clouds.frag
CHANGED
|
@@ -811,7 +811,6 @@ vec2 getHazeRayNearFar(const IntersectionResult intersections) {
|
|
|
811
811
|
|
|
812
812
|
float getRayDistanceToScene(const vec3 rayDirection, out float viewZ) {
|
|
813
813
|
float depth = readDepthValue(depthBuffer, vUv * targetUvScale + temporalJitter);
|
|
814
|
-
depth = reverseLogDepth(depth, cameraNear, cameraFar);
|
|
815
814
|
if (depth < 1.0 - 1e-7) {
|
|
816
815
|
depth = reverseLogDepth(depth, cameraNear, cameraFar);
|
|
817
816
|
viewZ = getViewZ(depth);
|