KiCad PCB EDA Suite
|
Procedural generation of the copper normals. More...
#include <material.h>
Public Member Functions | |
COPPER_NORMAL () | |
COPPER_NORMAL (float aScale, const MATERIAL_GENERATOR *aBoardNormalGenerator) | |
virtual | ~COPPER_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 | |
const MATERIAL_GENERATOR * | m_board_normal_generator |
float | m_scale |
Procedural generation of the copper normals.
Definition at line 75 of file material.h.
|
inline |
Definition at line 78 of file material.h.
References m_board_normal_generator, and m_scale.
COPPER_NORMAL::COPPER_NORMAL | ( | float | aScale, |
const MATERIAL_GENERATOR * | aBoardNormalGenerator | ||
) |
Definition at line 164 of file material.cpp.
References m_board_normal_generator, and m_scale.
|
inlinevirtual |
Definition at line 86 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 171 of file material.cpp.
References MATERIAL_GENERATOR::Generate(), m_board_normal_generator, HITINFO::m_HitPoint, RAY::m_Origin, m_scale, PerlinNoise::noise(), and s_perlinNoise.
|
private |
Definition at line 93 of file material.h.
Referenced by COPPER_NORMAL(), and Generate().
|
private |
Definition at line 94 of file material.h.
Referenced by COPPER_NORMAL(), and Generate().