Mirror

In previous chapters, you learned how to create planes and terrains for your game. A great effect you can add to your terrains is the illusion that there is a reflection from the ground. This can be accomplished by using the mirror command. When you create a mirror, it reflects everything that is either above it or below it. The mirror command is very simple to add:

; This code creates a mirror
mirror=CreateMirror()

Here we’ve created a mirror called mirror, but you can call it anything you’d like. You can also reposition the mirror so that it is above or below your objects (see Figure 13.6).

Figure 13.6. Notice how the cone reflects in the mirror.


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

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