Reply To: AR Sandbox mostly complete! Few questions left.

Home Forums AR Sandbox Forum AR Sandbox mostly complete! Few questions left. Reply To: AR Sandbox mostly complete! Few questions left.

#101440
Oliver Kreylos
Keymaster

vec4 waterColor=vec4(0.0,0.0,1.0,1.0); // Blue

The first three components of the vector are red, green, and blue components, each from 0.0 (off) to 1.0 (full on). The fourth component is opacity, and should be left at 1.0. To get white:

vec4 waterColor=vec4(1.0,1.0,1.0,1.0); // White

Toxic waste would be:

vec4 waterColor=vec4(0.2,1.0,0.2,1.0); // Toxic waste

etc.

Comments are closed.