chrono::ChVisualMaterial Class Reference

Description

Definition of a visual material.

#include <ChVisualMaterial.h>

Public Member Functions

void SetAmbientColor (const ChColor &rgb)
 
void SetDiffuseColor (const ChColor &rgb)
 
void SetSpecularColor (const ChColor &rgb)
 
void SetEmissiveColor (const ChColor &rgb)
 
void SetSpecularExponent (float exponent)
 
void SetOpacity (float o)
 
void SetIllumination (int i)
 
void SetKdTexture (const std::string &filename)
 
void SetKsTexture (const std::string &filename)
 
void SetKeTexture (const std::string &filename)
 
void SetNormalMapTexture (const std::string &filename)
 
void SetMetallicTexture (const std::string &filename)
 
void SetRoughnessTexture (const std::string &filename)
 
void SetOpacityTexture (const std::string &filename)
 
void SetWeightTexture (const std::string &filename)
 
void SetDisplacementTexture (const std::string &filename)
 
void SetAmbientOcclusionTexture (const std::string &filename)
 
void SetTextureScale (float scale_x, float scale_y)
 Apply the specified texture scaling to all textures in this material.
 
void SetFresnelExp (float exp)
 
void SetFresnelMax (float max)
 
void SetFresnelMin (float min)
 
void SetRoughness (float r)
 
void SetMetallic (float m)
 
void SetUseSpecularWorkflow (bool s)
 
void SetClassID (unsigned short int id)
 
void SetInstanceID (unsigned short int id)
 
const ChColorGetAmbientColor () const
 
const ChColorGetDiffuseColor () const
 
const ChColorGetSpecularColor () const
 
const ChColorGetEmissiveColor () const
 
float GetSpecularExponent () const
 
float GetOpacity () const
 
int GetIllumination () const
 
const std::string & GetKdTexture () const
 
const std::string & GetKsTexture () const
 
const std::string & GetKeTexture () const
 
const std::string & GetNormalMapTexture () const
 
const std::string & GetMetallicTexture () const
 
const std::string & GetRoughnessTexture () const
 
const std::string & GetOpacityTexture () const
 
const std::string & GetWeightTexture () const
 
const std::string & GetDisplacementTexture () const
 
const std::string & GetAmbientOcclusionTexture () const
 
const ChVector2< float > & GetTextureScale () const
 
float GetFresnelExp () const
 
float GetFresnelMax () const
 
float GetFresnelMin () const
 
float GetRoughness () const
 
float GetMetallic () const
 
bool GetUseSpecularWorkflow () const
 
unsigned short int GetClassID () const
 
unsigned short int GetInstanceID () const
 
virtual void ArchiveOut (ChArchiveOut &marchive)
 Method to allow serialization of transient data to archives.
 
virtual void ArchiveIn (ChArchiveIn &marchive)
 Method to allow deserialization of transient data from archives.
 

Static Public Member Functions

static std::shared_ptr< ChVisualMaterialDefault ()
 Create a default material.
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/assets/ChVisualMaterial.h
  • /builds/uwsbel/chrono/src/chrono/assets/ChVisualMaterial.cpp