b3dGetEntityRoughnessFX

Returns entity roughness PBR property (0.0-1.0 double). Takes entity (mesh entity handle, positive integer). Returns double roughness value (0.0=perfectly smooth/mirror to 1.0=completely rough/matte, -1.0 on error).

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Double

Quick Summary

Returns entity roughness PBR property (0.0-1.0 double). Takes entity (mesh entity handle, positive integer). Returns double roughness value (0.0=perfectly smooth/mirror to 1.0=completely rough/matte, -1.0 on error).

Technical Exegesis...

Returns entity roughness PBR property (0.0-1.0 double). Takes entity (mesh entity handle, positive integer). Returns double roughness value (0.0=perfectly smooth/mirror to 1.0=completely rough/matte, -1.0 on error). Queries roughness property from entity material for physically-based rendering, checks material override first then base material.

Roughness meaning: 0.0=perfectly smooth (mirror reflection, sharp highlights, polished surfaces), 0.2-0.4=smooth (glossy plastic, polished wood, wet surfaces), 0.

Example

Example.bam
; No example implemented yet