Friday, 20 November 2009

It's pretty deep out here

Finally, after months of being in awe of the Depth commands, I've finally managed to work out how to use both of them.

First there is the PixelDepth which works out how close the player is to a texture, and then you can interpolate between two textures, well pretty much anything actually from the result.

The second, and this took me a lot longer to figure out, was the DestDepth command. With this I'm able to work out the position of one object in relation to the object behind it. With this I'm going to try and create a sea material. It'll be pretty basic compared to others out there, but it's something I've wanted to do for a while now.


No comments:

Post a Comment