sriharshachilakapati

SilenceEngine shader

Mar 21st, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. uniform {
  2.     mat4 projection;
  3.     mat4 camera;
  4.     mat4 model;
  5. }
  6.  
  7. vertex_shader {
  8.     in {
  9.         vec3 position = 0;
  10.         vec4 color    = 2;
  11.     }
  12.  
  13.     out {
  14.         vec4 passColor;
  15.     }
  16.  
  17.     main {
  18.         passColor = color;
  19.         se_position = projection * camera * model * vec4(position, 1.0);
  20.     }
  21. }
  22.  
  23. fragment_shader {
  24.     in {
  25.         vec4 passColor;
  26.     }
  27.  
  28.     main {
  29.         se_fragColor = passColor;
  30.     }
  31. }
Add Comment
Please, Sign In to add comment