|
|
@@ -576,7 +576,8 @@ class SSGINode extends TempNode {
|
|
|
|
|
|
const noiseOffset = spatialOffsets( screenCoordinate );
|
|
|
const noiseDirection = gradientNoise( screenCoordinate );
|
|
|
- const initialRayStep = fract( noiseOffset.add( this._temporalOffset ) ).add( rand( uvNode ).mul( 2 ).sub( 1 ) );
|
|
|
+ const noiseJitterIdx = this._temporalDirection.mul( 0.02 ); // Port: Add noiseJitterIdx here for slightly better noise convergence with TRAA (see #31890 for more details)
|
|
|
+ const initialRayStep = fract( noiseOffset.add( this._temporalOffset ) ).add( rand( uvNode.add( noiseJitterIdx ).mul( 2 ).sub( 1 ) ) );
|
|
|
|
|
|
const ao = float( 0 );
|
|
|
const color = vec3( 0 );
|