Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uniform sampler2D texColor < string type = "input"; >;
- void PostProcess_VS(in vec4 pos : 1, in vec2 tex, out vec4 posOut, out vec2 texOut)
- {
- gl_Position = pos;
- posOut = pos;
- texOut = tex;
- }
- void PostProcess_PS(in vec4 pos, in vec2 tex, out vec4 FragColor)
- {
- FragColor = texture2D(texColor, tex) * vec4(tex, 1.0, 1.0);
- }
- // --------------------------------------------------------- \\
- technique PostProcess
- {
- pass
- {
- VertexShader = compile 420 PostProcess_VS();
- FragmentShader = compile 420 PostProcess_PS();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement