KiCad PCB EDA Suite
|
A base class that can be used to derive procedurally generated materials. More...
#include <material.h>
Public Member Functions | |
MATERIAL_GENERATOR () | |
virtual | ~MATERIAL_GENERATOR () |
virtual SFVEC3F | Generate (const RAY &aRay, const HITINFO &aHitInfo) const =0 |
Generate a 3D vector based on the ray and hit information depending on the implementation. | |
A base class that can be used to derive procedurally generated materials.
Definition at line 35 of file material.h.
MATERIAL_GENERATOR::MATERIAL_GENERATOR | ( | ) |
Definition at line 131 of file material.cpp.
|
inlinevirtual |
Definition at line 40 of file material.h.
|
pure virtual |
Generate a 3D vector based on the ray and hit information depending on the implementation.
aRay | the camera ray that hits the object |
aHitInfo | the hit information |
Implemented in BOARD_NORMAL, COPPER_NORMAL, PLATED_COPPER_NORMAL, SOLDER_MASK_NORMAL, PLASTIC_NORMAL, PLASTIC_SHINE_NORMAL, BRUSHED_METAL_NORMAL, and SILK_SCREEN_NORMAL.
Referenced by COPPER_NORMAL::Generate(), SOLDER_MASK_NORMAL::Generate(), and MATERIAL::Generate().