|
RenderPhongImage | |
RenderPhongImage ImageNumber, Xpos, Ypos, LightColour, Brightness, FallOffRate | |
Parameters: ImageNumber = The Index of the image that you wish to render to Xpos = The X position from where the illumination centers Ypos = The Y position from where the illumination centers. LightColour = The RGB colour of the light Brightness = The Brightness (at the center) of the illumination FallOffRate = The rate the brightness falls away from the center |
|
Returns: NONE | |
RenderPhongImage renders a illumination pattern to an image. The way it works, is that each pixel is illuminated based on it's position to the origin point, which is considered to be light source. If you set the lights origin to the center of an image, It will creates a nice a shaded half sphere style image.. FACTS: * none. Mini Tutorial: This example creates an Image, render an illumination pattern to it from the center, then displays this on the screen.
|
Related Info: | FadeImage | GrayScaleImage | LightImage | MirrorImage | RGBmaskImage | SaveBitmap | ScrollImage : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |