b3dCameraFogColor

Sets camera fog color (distant objects fade to this color, 0-255 RGB). Takes camera (camera entity handle), r/g/b (red/green/blue 0-255). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

camera Int
r Int
g Int
b Int

Returns

Void

Quick Summary

Sets camera fog color (distant objects fade to this color, 0-255 RGB). Takes camera (camera entity handle), r/g/b (red/green/blue 0-255). Returns nothing.

Technical Exegesis...

Sets camera fog color (distant objects fade to this color, 0-255 RGB). Takes camera (camera entity handle), r/g/b (red/green/blue 0-255). Returns nothing. Validates entity is camera type, allocates camera->Camera3D if null, sets camera->fogColor=(r/255, g/255, b/255). Controls color objects fade to with distance.

This function sets fog color. Fog color: color objects fade to as they reach fogFar distance (distant objects lerp from object color to fog color), RGB values 0-255 converted to 0.0-1.0 floats.

Example

Example.bam
; No example implemented yet