Guest User

Untitled

a guest
Jul 17th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #version 330
  2. in vec3 worldPosition;
  3. layout(location = 0) out vec4 outputColor;
  4.  
  5. void main()
  6. {
  7. float height = 0.007*(abs(worldPosition.y)-200);
  8. vec4 apexColor = vec4(0,0,0,1);
  9. vec4 centerColor = vec4(0.159, 0.132, 0.1, 1);
  10.  
  11. outputColor = mix(centerColor, apexColor, height);
  12. }
  13.  
  14. GL.TexImage2D(
  15. TextureTarget.Texture2D,
  16. 0,
  17. PixelInternalFormat.Rgb32f,
  18. WindowWidth,
  19. WindowHeight,
  20. 0,
  21. PixelFormat.Rgb,
  22. PixelType.Float,
  23. IntPtr.Zero )
Add Comment
Please, Sign In to add comment