| 
    KiCad PCB EDA Suite
    
   | 
 
Procedural generation of the plastic normals. More...
#include <material.h>
  
Public Member Functions | |
| PLASTIC_NORMAL () | |
| PLASTIC_NORMAL (float aScale) | |
| virtual | ~PLASTIC_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 plastic normals.
Definition at line 145 of file material.h.
      
  | 
  inline | 
Definition at line 148 of file material.h.
References m_scale, and MATERIAL_GENERATOR::MATERIAL_GENERATOR().
| PLASTIC_NORMAL::PLASTIC_NORMAL | ( | float | aScale | ) | 
Definition at line 230 of file material.cpp.
References m_scale.
      
  | 
  inlinevirtual | 
Definition at line 155 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 236 of file material.cpp.
References HITINFO::m_HitPoint, m_scale, HITINFO::m_tHit, and s_perlinNoise.
      
  | 
  private | 
Definition at line 162 of file material.h.
Referenced by Generate(), PLASTIC_NORMAL(), and PLASTIC_NORMAL().