KiCad PCB EDA Suite
Loading...
Searching...
No Matches
MODEL_3D::MATERIAL Struct Reference
Inheritance diagram for MODEL_3D::MATERIAL:
SMATERIAL

Public Member Functions

 MATERIAL (const SMATERIAL &aOther)
 
bool IsTransparent () const
 

Public Attributes

unsigned int m_render_idx_buffer_offset = 0
 
unsigned int m_render_idx_count = 0
 
BBOX_3D m_bbox
 bounding box for this material group, used for transparent material ordering
 
SFVEC3F m_Ambient
 
SFVEC3F m_Diffuse
 Default diffuse color if m_Color is NULL.
 
SFVEC3F m_Emissive
 
SFVEC3F m_Specular
 
float m_Shininess
 
float m_Transparency
 1.0 is completely transparent, 0.0 completely opaque
 

Detailed Description

Definition at line 144 of file 3d_model.h.

Constructor & Destructor Documentation

◆ MATERIAL()

MODEL_3D::MATERIAL::MATERIAL ( const SMATERIAL aOther)
inline

Definition at line 151 of file 3d_model.h.

Member Function Documentation

◆ IsTransparent()

bool MODEL_3D::MATERIAL::IsTransparent ( ) const
inline

Definition at line 152 of file 3d_model.h.

References SMATERIAL::m_Transparency.

Referenced by MODEL_3D::MODEL_3D().

Member Data Documentation

◆ m_Ambient

SFVEC3F SMATERIAL::m_Ambient
inherited

◆ m_bbox

BBOX_3D MODEL_3D::MATERIAL::m_bbox

bounding box for this material group, used for transparent material ordering

Definition at line 149 of file 3d_model.h.

Referenced by MODEL_3D::MODEL_3D().

◆ m_Diffuse

SFVEC3F SMATERIAL::m_Diffuse
inherited

Default diffuse color if m_Color is NULL.

Definition at line 40 of file c3dmodel.h.

Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), formatMaterial(), RENDER_3D_RAYTRACE_BASE::getModelMaterial(), MODEL_3D::MODEL_3D(), and OglSetMaterial().

◆ m_Emissive

SFVEC3F SMATERIAL::m_Emissive
inherited

◆ m_render_idx_buffer_offset

unsigned int MODEL_3D::MATERIAL::m_render_idx_buffer_offset = 0

Definition at line 146 of file 3d_model.h.

Referenced by MODEL_3D::MODEL_3D().

◆ m_render_idx_count

unsigned int MODEL_3D::MATERIAL::m_render_idx_count = 0

Definition at line 147 of file 3d_model.h.

Referenced by MODEL_3D::MODEL_3D().

◆ m_Shininess

float SMATERIAL::m_Shininess
inherited

◆ m_Specular

SFVEC3F SMATERIAL::m_Specular
inherited

◆ m_Transparency

float SMATERIAL::m_Transparency
inherited

1.0 is completely transparent, 0.0 completely opaque

Definition at line 44 of file c3dmodel.h.

Referenced by formatMaterial(), RENDER_3D_RAYTRACE_BASE::getModelMaterial(), IsTransparent(), MODEL_3D::MODEL_3D(), and OglSetMaterial().


The documentation for this struct was generated from the following file: