diff options
Diffstat (limited to 'src/renderergl2/glsl/fogpass_fp.glsl')
-rw-r--r-- | src/renderergl2/glsl/fogpass_fp.glsl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/renderergl2/glsl/fogpass_fp.glsl b/src/renderergl2/glsl/fogpass_fp.glsl new file mode 100644 index 00000000..91884304 --- /dev/null +++ b/src/renderergl2/glsl/fogpass_fp.glsl @@ -0,0 +1,9 @@ +uniform vec4 u_Color; + +varying float var_Scale; + +void main() +{ + gl_FragColor = u_Color; + gl_FragColor.a *= sqrt(clamp(var_Scale, 0.0, 1.0)); +} |