| 
    KiCad PCB EDA Suite
    
   | 
 
Procedural generation of the shiny plastic normals. More...
#include <material.h>
  
Public Member Functions | |
| PLASTIC_SHINE_NORMAL () | |
| PLASTIC_SHINE_NORMAL (float aScale) | |
| virtual | ~PLASTIC_SHINE_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 plastic normals.
Definition at line 169 of file material.h.
      
  | 
  inline | 
Definition at line 172 of file material.h.
References m_scale, and MATERIAL_GENERATOR::MATERIAL_GENERATOR().
| PLASTIC_SHINE_NORMAL::PLASTIC_SHINE_NORMAL | ( | float | aScale | ) | 
Definition at line 255 of file material.cpp.
References m_scale.
      
  | 
  inlinevirtual | 
Definition at line 179 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 261 of file material.cpp.
References HITINFO::m_HitPoint, m_scale, and s_perlinNoise.
      
  | 
  private | 
Definition at line 187 of file material.h.
Referenced by Generate(), PLASTIC_SHINE_NORMAL(), and PLASTIC_SHINE_NORMAL().