Game Development Reference
In-Depth Information
Figure 2-4. Light positioned on right side of cube
Next, change the light position so that the light is on the left side of the cube.
Vector3 LightPosition = new Vector3(-125,0,0);
Run the program. You should see something like Figure 2-5 .
Search WWH ::




Custom Search