Getting ready

Set up your program to generate a noise texture and make it available to the shaders through the uniform variable NoiseTex. There are three uniforms in the fragment shader that can be assigned from the OpenGL program. They are as follows:

  • LightWoodColor: The lightest wood color
  • DarkWoodColor: The darkest wood color
  • Slice: A matrix that defines the slice of the virtual "log" and transforms the default region defined by the texture coordinates to some other arbitrary rectangular region

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.213.128