diff options
Diffstat (limited to 'bullet_fragment.glsl')
-rw-r--r-- | bullet_fragment.glsl | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/bullet_fragment.glsl b/bullet_fragment.glsl deleted file mode 100644 index 5e8becd..0000000 --- a/bullet_fragment.glsl +++ /dev/null @@ -1,15 +0,0 @@ -varying mat4 v_tex_rot; -uniform sampler2D tex; - -void main() { - vec2 l_uv = gl_TexCoord[0].xy; - const vec2 l_offset = vec2(0.5, 0.5); - l_uv -= l_offset; - l_uv = vec2(v_tex_rot * vec4(l_uv, 0.0, 1.0)); - l_uv += l_offset; - gl_FragColor = texture2D(tex, l_uv); - float M = max(max(gl_FragColor.x, gl_FragColor.y), gl_FragColor.z); - float C = M - min(min(gl_FragColor.x, gl_FragColor.y), gl_FragColor.z); - float S = C > 0.0 ? C / M : 0.0; - gl_FragColor.xyz = M * mix(vec3(1.0, 1.0, 1.0), gl_Color.xyz, S); -} |