b3dSetEntityReflectionClearColorFX

Sets reflection texture background/clear color (RGB 0-255) for areas with no reflected geometry (sky color). Takes entity (reflective entity handle), r, g, b (red, green, blue components, 0-255). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
r Int
g Int
b Int

Returns

Void

Quick Summary

Sets reflection texture background/clear color (RGB 0-255) for areas with no reflected geometry (sky color). Takes entity (reflective entity handle), r, g, b (red, green, blue components, 0-255). Returns nothing.

Technical Exegesis...

Sets reflection texture background/clear color (RGB 0-255) for areas with no reflected geometry (sky color). Takes entity (reflective entity handle), r, g, b (red, green, blue components, 0-255). Returns nothing. Validates entity is reflective, clamps RGB to 0-255 range, converts to 0.0-1.0 float range, stores in entity.reflectionClearColor. This color fills reflection texture before rendering reflected scene (background color for empty areas where no geometry is reflected).

Example

Example.bam
; No example implemented yet