Getting ready

Set up your program to generate a seamless noise texture and make it available to the shaders through the NoiseTex uniform sampler variable.

There are two uniforms in the fragment shader that can be assigned from the OpenGL program:

  • SkyColor: The background sky color
  • CloudColor: The color of the clouds

Get OpenGL 4 Shading Language Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.