diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 13:51:54 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 13:59:46 +0000 |
commit | 7889392ad37213dc7419fb2423052b342e38de5b (patch) | |
tree | 87686b8b81cc9be715eefd3af3d80b28bb1584a6 /gfx/gl/shaders/waterShader.fs | |
parent | Remove now redundent Shader::Source class (diff) | |
download | ilt-7889392ad37213dc7419fb2423052b342e38de5b.tar.bz2 ilt-7889392ad37213dc7419fb2423052b342e38de5b.tar.xz ilt-7889392ad37213dc7419fb2423052b342e38de5b.zip |
dos2unix shader sources
Diffstat (limited to 'gfx/gl/shaders/waterShader.fs')
-rw-r--r-- | gfx/gl/shaders/waterShader.fs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gfx/gl/shaders/waterShader.fs b/gfx/gl/shaders/waterShader.fs index bdfbc33..c7d14cf 100644 --- a/gfx/gl/shaders/waterShader.fs +++ b/gfx/gl/shaders/waterShader.fs @@ -1,13 +1,13 @@ -#version 130
-
-in vec2 texCoord0;
-in float depth;
-
-uniform sampler2D sampler;
-uniform vec3 waves;
-
-void main()
-{
- gl_FragColor = texture(sampler, texCoord0);
- gl_FragColor.a *= clamp(-depth * .7, .1, 1.0);
-}
+#version 130 + +in vec2 texCoord0; +in float depth; + +uniform sampler2D sampler; +uniform vec3 waves; + +void main() +{ + gl_FragColor = texture(sampler, texCoord0); + gl_FragColor.a *= clamp(-depth * .7, .1, 1.0); +} |