KiCad PCB EDA Suite
Loading...
Searching...
No Matches
COPPER_NORMAL Class Reference

Procedural generation of the copper normals. More...

#include <material.h>

Inheritance diagram for COPPER_NORMAL:
MATERIAL_GENERATOR

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_GENERATORm_board_normal_generator
 
float m_scale
 

Detailed Description

Procedural generation of the copper normals.

Definition at line 75 of file material.h.

Constructor & Destructor Documentation

◆ COPPER_NORMAL() [1/2]

COPPER_NORMAL::COPPER_NORMAL ( )
inline

Definition at line 78 of file material.h.

References m_board_normal_generator, and m_scale.

◆ COPPER_NORMAL() [2/2]

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.

◆ ~COPPER_NORMAL()

virtual COPPER_NORMAL::~COPPER_NORMAL ( )
inlinevirtual

Definition at line 86 of file material.h.

Member Function Documentation

◆ Generate()

SFVEC3F COPPER_NORMAL::Generate ( const RAY aRay,
const HITINFO aHitInfo 
) const
overridevirtual

Generate a 3D vector based on the ray and hit information depending on the implementation.

Parameters
aRaythe camera ray that hits the object
aHitInfothe hit information
Returns
the result of the procedural

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.

Member Data Documentation

◆ m_board_normal_generator

const MATERIAL_GENERATOR* COPPER_NORMAL::m_board_normal_generator
private

Definition at line 93 of file material.h.

Referenced by COPPER_NORMAL(), and Generate().

◆ m_scale

float COPPER_NORMAL::m_scale
private

Definition at line 94 of file material.h.

Referenced by COPPER_NORMAL(), and Generate().


The documentation for this class was generated from the following files: