Is, not it
This commit is contained in:
1 parent
8efefed241
commit
c00ee2a4d6
1 file changed
+1
-1
@@ -75,7 +75,7 @@ float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
|
||||
// Combine all the noise values together. The base noise serves as a universal multiplier while the others are fed into a squishing function.
|
||||
// Importantly, the squishing function ensures that its inputs range from 0-1, such that power doesn't result in values beyond 1.
|
||||
// This is also where the "white hot edge" and trail fade effect comes from, due to the incorporation of the X and Y coordinate. In this context, the X coordinate exists to
|
||||
// create lower opacities (which then are squished to make the trail look like it's vanishing) the further along the trail the point is. The Y coordinate, meanwhile, it multiplied
|
||||
// create lower opacities (which then are squished to make the trail look like it's vanishing) the further along the trail the point is. The Y coordinate, meanwhile, is multiplied
|
||||
// with the noise such that values close to 1 (the top of the trail) are given more weight and recieve a greater brightness.
|
||||
float opacity = noise * pow(saturate((1 - coords.x) - noise * coords.y * 0.54), 3);
|
||||
|
||||
|
||||
Reference in new issue
Block a user