b3dGetEntityBlueFX

Gets entity blue component (0-255 int, returns 0 on error, 255 default). Takes entity (mesh entity handle). Returns blue component 0-255 (converted from material.baseColorFactor.z), 0 if invalid handle/non-mesh, 255 if valid mesh without material.

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Int

Quick Summary

Gets entity blue component (0-255 int, returns 0 on error, 255 default). Takes entity (mesh entity handle). Returns blue component 0-255 (converted from material.baseColorFactor.z), 0 if invalid handle/non-mesh, 255 if valid mesh without material.

Technical Exegesis...

Gets entity blue component (0-255 int, returns 0 on error, 255 default). Takes entity (mesh entity handle). Returns blue component 0-255 (converted from material.baseColorFactor.z), 0 if invalid handle/non-mesh, 255 if valid mesh without material. Checks material override first then base material. Mesh entities only.

This function retrieves blue color. Color conversion: reads material.baseColorFactor.z (0.0-1.0 float), converts to 0-255 int (multiply by 255.0 and cast to int).

Example

Example.bam
; No example implemented yet