DarkGDK Programming Wiki
Advertisement

Fade a 3D object to the current ambient level. You can use this command with dbGhostObjectOn to set the transparency of the object.

Syntax[]

dbFadeObject(int Object, int Fade)
dbFadeObject(int Object, float Fade)

int Object is the number of the object you set the fadeing on.
int Fade or float Fade is the value of fading.

If you set this value to 0 and the ambient light to 0 the object will become completely unlit.
Set the fade value to 200 if you want double the illumination and set it to 50 if you want to halve illumination.

See Also[]

dbSetAmbientLight

Advertisement