b3dSetEntityColorFX

Sets entity base color RGB (0-255, affects material baseColorFactor). Takes entity (mesh/billboard entity handle), red (0-255 int), green (0-255 int), blue (0-255 int). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
red Int
green Int
blue Int

Returns

Void

Quick Summary

Sets entity base color RGB (0-255, affects material baseColorFactor). Takes entity (mesh/billboard entity handle), red (0-255 int), green (0-255 int), blue (0-255 int). Returns nothing.

Technical Exegesis...

Sets entity base color RGB (0-255, affects material baseColorFactor). Takes entity (mesh/billboard entity handle), red (0-255 int), green (0-255 int), blue (0-255 int). Returns nothing. Converts RGB from 0-255 to 0.0-1.0 floats, updates material baseColorFactor (PBR albedo color) or billboard color. Works with mesh and billboard entities.

This function sets base color. Color conversion: RGB values 0-255 converted to 0.0-1.0 floats (shader-compatible format).

Example

Example.bam
; No example implemented yet