b3dSetEntityMetallicFX

Sets entity metallic factor (0.0=dielectric, 1.0=metal, clamped 0.0-1.0). Takes entity (mesh entity handle), metallic (0.0-1.0 double). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
metallic Double

Returns

Void

Quick Summary

Sets entity metallic factor (0.0=dielectric, 1.0=metal, clamped 0.0-1.0). Takes entity (mesh entity handle), metallic (0.0-1.0 double). Returns nothing.

Technical Exegesis...

Sets entity metallic factor (0.0=dielectric, 1.0=metal, clamped 0.0-1.0). Takes entity (mesh entity handle), metallic (0.0-1.0 double). Returns nothing. Clamps metallic to 0.0-1.0 range, updates material metallicFactor, sets metallicRoughnessTextureIndex=1 (default white texture) so factor controls metallic exclusively. Mesh entities only.

This function sets metallic property. Metallic meaning: PBR property controlling how material reflects light (0.

Example

Example.bam
; No example implemented yet