Advertisement
Guest User

Untitled

a guest
Nov 26th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. uniform sampler2D texColor < string type = "input"; >;
  2.  
  3. void PostProcess_VS(in vec4 pos : 1, in vec2 tex, out vec4 posOut, out vec2 texOut)
  4. {
  5.     gl_Position = pos;
  6.  
  7.     posOut = pos;
  8.     texOut = tex;
  9. }
  10. void PostProcess_PS(in vec4 pos, in vec2 tex, out vec4 FragColor)
  11. {
  12.     FragColor = texture2D(texColor, tex) * vec4(tex, 1.0, 1.0);
  13. }
  14.  
  15. // --------------------------------------------------------- \\
  16.  
  17. technique PostProcess
  18. {
  19.     pass
  20.     {
  21.         VertexShader = compile 420 PostProcess_VS();
  22.         FragmentShader = compile 420 PostProcess_PS();
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement