Stellarium 0.14.3
List of all members | Public Types | Public Member Functions | Public Attributes
OBJ::Material Struct Reference

Encapsulates all information that the describes the surface appearance of a StelModel. More...

#include <OBJ.hpp>

Public Types

enum  Illum {
  I_NONE =-1, I_DIFFUSE =0, I_DIFFUSE_AND_AMBIENT =1, I_SPECULAR =2,
  I_TRANSLUCENT =9
}
 MTL Illumination models, do not use externally anymore. More...
 

Public Member Functions

 Material ()
 Creates a material with the default values. More...
 
void finalize ()
 Needs to be called after everything is loaded. More...
 

Public Attributes

Illum illum
 
QString name
 Material name. More...
 
QVector3D ambient
 Ka, Kd, Ks, Ke. More...
 
QVector3D diffuse
 
QVector3D specular
 
QVector3D emission
 
float shininess
 Shininess [0..128]. More...
 
float alpha
 Transparency [0..1]. More...
 
bool alphatest
 If to perform binary alpha testing. Default off. More...
 
bool backfacecull
 If to perform backface culling. Default on. More...
 
bool hasSpecularity
 Quick check if this material has specularity. More...
 
bool hasTransparency
 Quick check if this material has "real" transparency (i.e. needs blending) More...
 
QString textureName
 Texture name. More...
 
StelTextureSP texture
 
QString bumpMapName
 Bump map name. More...
 
StelTextureSP bump_texture
 
QString heightMapName
 Height map name. More...
 
StelTextureSP height_texture
 
QString emissiveMapName
 Name of emissive texture. More...
 
StelTextureSP emissive_texture
 

Detailed Description

Encapsulates all information that the describes the surface appearance of a StelModel.

Definition at line 71 of file OBJ.hpp.

Member Enumeration Documentation

MTL Illumination models, do not use externally anymore.

See the developer doc for info.

Deprecated:
This is from the old illum model, do not consider this outside this class!

Definition at line 75 of file OBJ.hpp.

Constructor & Destructor Documentation

OBJ::Material::Material ( )
inline

Creates a material with the default values.

Definition at line 79 of file OBJ.hpp.

Member Function Documentation

void OBJ::Material::finalize ( )

Needs to be called after everything is loaded.

Member Data Documentation

float OBJ::Material::alpha

Transparency [0..1].

Definition at line 115 of file OBJ.hpp.

bool OBJ::Material::alphatest

If to perform binary alpha testing. Default off.

Definition at line 117 of file OBJ.hpp.

QVector3D OBJ::Material::ambient

Ka, Kd, Ks, Ke.

Definition at line 108 of file OBJ.hpp.

bool OBJ::Material::backfacecull

If to perform backface culling. Default on.

Definition at line 119 of file OBJ.hpp.

QString OBJ::Material::bumpMapName

Bump map name.

Shared pointer to bump map texture of the model. This can be null.

Definition at line 130 of file OBJ.hpp.

QString OBJ::Material::emissiveMapName

Name of emissive texture.

Shared pointer to emissive texture of the model. This can be null.

Definition at line 138 of file OBJ.hpp.

bool OBJ::Material::hasSpecularity

Quick check if this material has specularity.

Definition at line 121 of file OBJ.hpp.

bool OBJ::Material::hasTransparency

Quick check if this material has "real" transparency (i.e. needs blending)

Definition at line 123 of file OBJ.hpp.

QString OBJ::Material::heightMapName

Height map name.

Shared pointer to height map texture of the model. This can be null.

Definition at line 134 of file OBJ.hpp.

QString OBJ::Material::name

Material name.

Definition at line 106 of file OBJ.hpp.

float OBJ::Material::shininess

Shininess [0..128].

Definition at line 113 of file OBJ.hpp.

QString OBJ::Material::textureName

Texture name.

Shared pointer to texture of the model. This can be null.

Definition at line 126 of file OBJ.hpp.


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