![]() |
CamSim
0.0.0
A rasterization-based simulator for various types of cameras
|
Public Member Functions | |
Constructors for basic materials | |
| Material () | |
| Default material (phong, greyish, with diffuse and specular components) More... | |
| Material (const QVector3D &diffuse, const QVector3D &specular=QVector3D(0.0f, 0.0f, 0.0f), float shininess=100.0f) | |
| Construct a phong-type material with the given diffuse and specular colors. If the specular color is 0 (the default), then the material will be lambertian. More... | |
Public Attributes | |
Type description | |
| MaterialType | type |
| Material type. More... | |
| bool | isTwoSided |
| Flag: is this material two-sided? More... | |
Simulated geometric detail | |
| unsigned int | bumpTex |
| Texture containing a bump map, or 0. More... | |
| float | bumpScaling |
| Scaling factor for the bump map. More... | |
| unsigned int | normalTex |
| Texture containing a normal map (overrides bumpTex), or 0. More... | |
Opacity | |
| float | opacity |
| Opacity value in [0,1]. More... | |
| unsigned int | opacityTex |
| Texture containing an opacity map (overrides opacity) More... | |
Simulation parameters (depend on material type) | |
| QVector3D | ambient |
| Ambient color (for Phong) More... | |
| QVector3D | diffuse |
| Diffuse color (for Phong) More... | |
| QVector3D | specular |
| Specular color (for Phong) More... | |
| QVector3D | emissive |
| Emissive color (for Phong) More... | |
| float | shininess |
| Shininess parameter (for Phong) More... | |
| unsigned int | ambientTex |
| Texture containing ambient color map (overrides ambient), or 0 (for Phong) More... | |
| unsigned int | diffuseTex |
| Texture containing diffuse color map (overrides diffuse), or 0 (for Phong) More... | |
| unsigned int | specularTex |
| Texture containing specular color map (overrides specular), or 0 (for Phong) More... | |
| unsigned int | emissiveTex |
| Texture containing emissive color map (overrides emissive), or 0 (for Phong) More... | |
| unsigned int | shininessTex |
| Texture containing shininess map (overrides shininess), or 0 (for Phong) More... | |
| unsigned int | lightnessTex |
| Texture containing lightness map, or 0 (for Phong) More... | |
The Material class.
Describes a material suitable for OpenGL-based rendering
| CamSim::Material::Material | ( | ) |
Default material (phong, greyish, with diffuse and specular components)
| CamSim::Material::Material | ( | const QVector3D & | diffuse, |
| const QVector3D & | specular = QVector3D(0.0f, 0.0f, 0.0f), |
||
| float | shininess = 100.0f |
||
| ) |
Construct a phong-type material with the given diffuse and specular colors. If the specular color is 0 (the default), then the material will be lambertian.
| QVector3D CamSim::Material::ambient |
Ambient color (for Phong)
| unsigned int CamSim::Material::ambientTex |
Texture containing ambient color map (overrides ambient), or 0 (for Phong)
| float CamSim::Material::bumpScaling |
Scaling factor for the bump map.
| unsigned int CamSim::Material::bumpTex |
Texture containing a bump map, or 0.
| QVector3D CamSim::Material::diffuse |
Diffuse color (for Phong)
| unsigned int CamSim::Material::diffuseTex |
Texture containing diffuse color map (overrides diffuse), or 0 (for Phong)
| QVector3D CamSim::Material::emissive |
Emissive color (for Phong)
| unsigned int CamSim::Material::emissiveTex |
Texture containing emissive color map (overrides emissive), or 0 (for Phong)
| bool CamSim::Material::isTwoSided |
Flag: is this material two-sided?
| unsigned int CamSim::Material::lightnessTex |
Texture containing lightness map, or 0 (for Phong)
| unsigned int CamSim::Material::normalTex |
Texture containing a normal map (overrides bumpTex), or 0.
| float CamSim::Material::opacity |
Opacity value in [0,1].
| unsigned int CamSim::Material::opacityTex |
Texture containing an opacity map (overrides opacity)
| float CamSim::Material::shininess |
Shininess parameter (for Phong)
| unsigned int CamSim::Material::shininessTex |
Texture containing shininess map (overrides shininess), or 0 (for Phong)
| QVector3D CamSim::Material::specular |
Specular color (for Phong)
| unsigned int CamSim::Material::specularTex |
Texture containing specular color map (overrides specular), or 0 (for Phong)
| MaterialType CamSim::Material::type |
Material type.
1.8.16