Have a Go: Changing the Square Color

Go to the fragment shader and change the color of your geometry.

Four-Component Color Vector

The format is (red, green, blue, alpha). Alpha is always 1.0 (for now), and the first three arguments are float numbers in the range of 0.0 to 1.0.

Remember to save the file after making the changes in your text editor before opening it in your browser.

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

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