stk-code_catmod/data/shaders/rsm.frag

14 lines
257 B
GLSL
Raw Normal View History

2014-05-19 12:17:26 -04:00
uniform sampler2D tex;
in vec2 uv;
in vec3 nor;
2014-06-28 17:01:28 -04:00
in vec4 color;
2014-05-19 12:17:26 -04:00
layout (location = 0) out vec3 RSMColor;
layout (location = 1) out vec3 RSMNormals;
void main()
{
2014-06-28 17:01:28 -04:00
RSMColor = texture(tex, uv).xyz * color.rgb;
2014-05-19 12:17:26 -04:00
RSMNormals = .5 * normalize(nor) + .5;
}