|
SpriteImageIntensity | |
SpriteImageIntensity SpriteIndex, VertexIndex, IntensityLevel | |
Parameters: SpriteIndex = The Sprite you wish to set VertexIndex = The Vertex your wish to alter IntensityLevel = The intensity level ranges betwen 0 and 255) |
|
Returns: NONE | |
SpriteImageIntensity allows you to change the Intensity level at any of the sprites corners. The intensity values only take effect when sprite is set to "Gouaud Fade" drawmode. FACTS: * Intensity values range from 0 to 255. (255=No Fade, 0 Totally faded out) * Sprites vertex range from vertex 0 to 3. They are ordered 0= top left, 1 top right, 2 bottom right, 3 bottom left. * Note: Sprites are drawn using a convex polygons, changing the intensity values can cause some render errors. So some care is needed. Mini Tutorial: This example creates an random image then applies this image to the screen full of sprites. Each sprites has it's UV coords stepped in and faded intensity values, so the sprites will show the various stages of texel zooming with a gouraud fade applied.
|
Related Info: | SpriteDrawMode | SpriteImageRGB | SpriteImageUV : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |