b2dMeshFaceG

Green channel (0..255) of a mesh face's base colour.

2D Overlay

Parameters & Returns

Parameters

handle Int
face Int

Returns

Int

Quick Summary

Green channel (0..255) of a mesh face's base colour.

Technical Exegesis...

Returns the green component (0..255) of the given face's material base colour, from the model's baked colour palette (.bb3d v4). See b2dMeshFaceR for the full description and the usual usage (draw untextured meshes as solid coloured faces). Returns 255 for faces with no colour or for pre-palette meshes.

Example

Example.bam
Local g:Int = b2dMeshFaceG(mesh, f)