Fixed draw issues with the flame primitive shader

This commit is contained in:
Dominic committed 2022-05-05 21:28:22 -05:00
1 parent 31335511d1
commit d07cc4c62c
2 files changed
+2 -2

No files matched your search

+2 -2
View File
@@ -49,8 +49,8 @@ float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
float2 coords = input.TextureCoordinates;
// Read the fade map as a streak.
float4 fadeMapColor = tex2D(uImage1, float2(frac(coords.y + cos(uTime) * 0.01), frac(coords.x - uTime * 1.4 * uSaturation)));
fadeMapColor.r *= pow(coords.x, 0.2);
float4 fadeMapColor = tex2D(uImage1, float2(frac(coords.y), frac(coords.x - uTime * 1.4 * uSaturation)));
fadeMapColor.r *= pow(coords.x, 0.04);
float opacity = lerp(1.45, 1.95, fadeMapColor.r) * color.a;
opacity *= pow(sin(coords.y * 3.141), lerp(1, 6, pow(coords.x, 2)));
BIN
View File
Binary file not shown.