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

#include <material.h>

Inheritance diagram for PLATED_COPPER_NORMAL:
MATERIAL_GENERATOR

Public Member Functions

 PLATED_COPPER_NORMAL ()
 
 PLATED_COPPER_NORMAL (float aScale)
 
virtual ~PLATED_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

float m_scale
 

Detailed Description

Definition at line 98 of file material.h.

Constructor & Destructor Documentation

◆ PLATED_COPPER_NORMAL() [1/2]

PLATED_COPPER_NORMAL::PLATED_COPPER_NORMAL ( )
inline

Definition at line 101 of file material.h.

References m_scale.

◆ PLATED_COPPER_NORMAL() [2/2]

PLATED_COPPER_NORMAL::PLATED_COPPER_NORMAL ( float  aScale)
inline

Definition at line 106 of file material.h.

References m_scale.

◆ ~PLATED_COPPER_NORMAL()

virtual PLATED_COPPER_NORMAL::~PLATED_COPPER_NORMAL ( )
inlinevirtual

Definition at line 111 of file material.h.

Member Function Documentation

◆ Generate()

SFVEC3F PLATED_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 219 of file material.cpp.

References HITINFO::m_HitPoint, m_scale, PerlinNoise::noise(), and s_perlinNoise.

Member Data Documentation

◆ m_scale

float PLATED_COPPER_NORMAL::m_scale
private

Definition at line 118 of file material.h.

Referenced by Generate(), and PLATED_COPPER_NORMAL().


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