Advertisement
PhoenixMee

Untitled

Apr 11th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #version 330
  2.  
  3. // Textures
  4. uniform sampler2D texture3;
  5.  
  6. // Water
  7. uniform vec3 waterColor;
  8. uniform vec3 skyColor;
  9.  
  10. in vec4 color;
  11. in vec4 position;
  12. in vec3 normal;
  13. in vec2 texCoord0;
  14. in float reflFactor;
  15.  
  16. out vec4 outColor;
  17.  
  18.  
  19. void main(void)
  20. {
  21. outColor = mix(vec4(waterColor, 0.6), vec4(skyColor, 1.0), reflFactor);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement