File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Samples/Desktop/D3D12Raytracing/src/D3D12RaytracingSakuraForestSER Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 7
7
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8
8
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
9
9
//
10
- // Portions of this code are based on work by Pablo Roman Andrioli.
11
- // Star Nest.
12
- // Licensed under the MIT License.
10
+ // Portions of this file incorporate work by Pablo Roman Andrioli,
11
+ // specifically the Star Nest volumetric fractal clouds effect formula,
12
+ // which is licensed under the MIT License.
13
13
//
14
14
//*********************************************************
15
15
@@ -50,9 +50,7 @@ float3 CalculateStarNest(float3 skyPosition, float3 rayDir)
50
50
// Normalize & smooth fractal density
51
51
fractalDensity = saturate (fractalDensity / (FractalSampleSteps * FractalIterations * 0.12 ));
52
52
float smoothedDensity = smoothstep (0.1 , 0.9 , fractalDensity);
53
-
54
53
return smoothedDensity;
55
54
}
56
55
57
-
58
56
#endif // STAR_NEST_H
You can’t perform that action at this time.
0 commit comments