VertexW# ( surface,index )
Blitz3D Forums/Blitz3D Programming/VertexW# ( surface,index )
| ||
Quote: VertexW# ( surface,index ) Parameters surface - surface handle index - index of vertex Description Returns the texture w coordinate of a vertex OK, I know what U & V are but what is W? P.S. Sorry for the cross post but I was gettin answers that I already know to be wrong in the beginners forum. (Sorry Beaker but this is a legit command that already produces valid data) |
| ||
I think 'reserved for possible future use' is the correct answer. As I recall, VertexW doesn't really return anything useful. It just gives a standard value of 1. This is analogous to ReadPixel in 2D graphics. It tells you the alpha value is 255 ( fully opaque ) even though there really is no alpha support. |
| ||
Beaker's answer was correct. And since Floyd agreed with him, so is his. |
| ||
The W is for use in 3D textures. Its the Z co-ordinate of the texture used sometimes in procedural textures/shaders or certain file formats TIFF for example. |