0.45.0
![]() |
#include <iMaterial.h>
Inherits igor::iResource.
Public Member Functions | |
void | setTexture (iTexturePtr texture, uint32 texunit) |
iTexturePtr | getTexture (uint32 texunit) const |
bool | hasTextureUnit (uint32 texunit) const |
const std::map< uint32, iTexturePtr > & | getTextures () const |
void | setTiling (const iaVector2f &tiling) |
const iaVector2f & | getTiling () const |
bool | hasTextures () const |
void | setEmissive (const iaColor3f &e) |
iaColor3f | getEmissive () const |
void | setAmbient (const iaColor3f &a) |
iaColor3f | getAmbient () const |
void | setSpecular (const iaColor3f &s) |
iaColor3f | getSpecular () const |
void | setDiffuse (const iaColor3f &d) |
iaColor3f | getDiffuse () const |
void | setShininess (float32 shininess) |
float32 | getShininess () const |
void | setAlpha (float32 alpha) |
float32 | getAlpha () const |
void | setVelocityOriented (bool enable) |
bool | isVelocityOriented () const |
void | setShader (const iShaderPtr &shader) |
iShaderPtr | getShader () const |
![]() | |
virtual | ~iResource ()=default |
bool | isValid () const |
bool | isProcessed () const |
bool | isQuiet () const |
const iaString & | getSource () const |
const iaString | getInfo () const |
const iResourceID & | getID () const |
const iaString & | getAlias () const |
iResourceCacheMode | getCacheMode () const |
const iParameters & | getParameters () const |
const iaString & | getType () const |
Friends | |
class | iMaterialFactory |
Additional Inherited Members | |
![]() | |
static bool | extractID (const iParameters ¶meters, iResourceID &id) |
![]() | |
iResource (const iParameters ¶meters) | |
contains all material information that belong to the surface of an object
Whereas iShader contains all the information related to shader and environment ie lights etc.
float32 igor::iMaterial::getAlpha | ( | ) | const |
iaColor3f igor::iMaterial::getAmbient | ( | ) | const |
iaColor3f igor::iMaterial::getDiffuse | ( | ) | const |
iaColor3f igor::iMaterial::getEmissive | ( | ) | const |
iShaderPtr igor::iMaterial::getShader | ( | ) | const |
float32 igor::iMaterial::getShininess | ( | ) | const |
iaColor3f igor::iMaterial::getSpecular | ( | ) | const |
iTexturePtr igor::iMaterial::getTexture | ( | uint32 | texunit | ) | const |
texunit | the given texture unit |
const std::map< uint32, iTexturePtr > & igor::iMaterial::getTextures | ( | ) | const |
const iaVector2f & igor::iMaterial::getTiling | ( | ) | const |
bool igor::iMaterial::hasTextures | ( | ) | const |
bool igor::iMaterial::hasTextureUnit | ( | uint32 | texunit | ) | const |
texunit | the given texture unit |
bool igor::iMaterial::isVelocityOriented | ( | ) | const |
void igor::iMaterial::setAlpha | ( | float32 | alpha | ) |
sets alpha value of material
void igor::iMaterial::setAmbient | ( | const iaColor3f & | a | ) |
set ambient color
a | ambient color |
void igor::iMaterial::setDiffuse | ( | const iaColor3f & | d | ) |
set diffuse color
d | diffuse color |
void igor::iMaterial::setEmissive | ( | const iaColor3f & | e | ) |
set emissive color
e | emissive color |
void igor::iMaterial::setShader | ( | const iShaderPtr & | shader | ) |
sets shader
shader | the shader to set |
void igor::iMaterial::setShininess | ( | float32 | shininess | ) |
set shininess
shininess | the shininess value |
void igor::iMaterial::setSpecular | ( | const iaColor3f & | s | ) |
set specular color
s | specular color |
void igor::iMaterial::setTexture | ( | iTexturePtr | texture, |
uint32 | texunit | ||
) |
set a texture for a given texture unit
texture | the texture to add |
texunit | the texture unit |
void igor::iMaterial::setTiling | ( | const iaVector2f & | tiling | ) |
sets the tiling configuration that can be use in a shader
tiling | column and row count of tiles |
void igor::iMaterial::setVelocityOriented | ( | bool | enable | ) |
sets velocity orientation
enable | if true orientation will be along velocity axis |
|
friend |