KiCad PCB EDA Suite
|
Procedural generation of the shiny brushed metal. More...
#include <material.h>
Public Member Functions | |
BRUSHED_METAL_NORMAL () | |
BRUSHED_METAL_NORMAL (float aScale) | |
virtual | ~BRUSHED_METAL_NORMAL () |
SFVEC3F | Generate (const RAY &aRay, const HITINFO &aHitInfo) const override |
Generate a 3D vector based on the ray and hit information depending on the implementation. | |
Private Attributes | |
float | m_scale |
Procedural generation of the shiny brushed metal.
Definition at line 194 of file material.h.
|
inline |
Definition at line 197 of file material.h.
References m_scale.
BRUSHED_METAL_NORMAL::BRUSHED_METAL_NORMAL | ( | float | aScale | ) |
Definition at line 279 of file material.cpp.
References m_scale.
|
inlinevirtual |
Definition at line 204 of file material.h.
|
overridevirtual |
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 |
Implements MATERIAL_GENERATOR.
Definition at line 285 of file material.cpp.
References HITINFO::m_HitPoint, m_scale, PerlinNoise::noise(), and s_perlinNoise.
|
private |
Definition at line 211 of file material.h.
Referenced by BRUSHED_METAL_NORMAL(), and Generate().