颜色预览shader修改

This commit is contained in:
ALIENJACK\alien 2024-11-14 20:10:01 +08:00
parent 2c36f91725
commit 56f2953a99

View File

@ -165,8 +165,8 @@
float waveCol2 = waveColor(uv, waveHeight2, maxHeight2, frequency2, power2); float waveCol2 = waveColor(uv, waveHeight2, maxHeight2, frequency2, power2);
float3 col = bg; float3 col = bg;
col = lerp(col, waveCol1 * col, step(uv.y, waveHeight1)); col = lerp(col, col/waveCol1, step(uv.y, waveHeight1));
col = lerp(col, waveCol2 * col, step(uv.y, waveHeight2)); col = lerp(col, col/waveCol2, step(uv.y, waveHeight2));
// Output to screen // Output to screen
fixed4 fragColor = float4(col,1.0); fixed4 fragColor = float4(col,1.0);