See samples: MaterialAndTexture.py, TextureAnimation.py.
Public Member Functions |
|
FBMaterial (str pName) | |
Constructor. |
|
FBMaterial | Clone () |
Clone the material. |
|
FBTexture | GetTexture (FBMaterialTextureType p0=kFBMaterialTextureDiffuse) |
Retrieve associated texture. |
|
OGLInit () | |
Setup OpenGL fixed pipeline material
settings. |
|
SetTexture (FBTexture pTexture, FBMaterialTextureType pType=kFBMaterialTextureDiffuse) | |
Set associated texture. |
|
Public Attributes |
|
FBAnimatableColor | Ambient |
Read Write Property: Ambient color.
|
|
FBAnimatableDouble | AmbientFactor |
Read Write Property: Ambient Factor
value. |
|
FBAnimatableColor | Bump |
Read Write Property: Bump. |
|
FBAnimatableDouble | BumpFactor |
Read Write Property: Bump Factor
value. |
|
FBAnimatableColor | Diffuse |
Read Write Property: Diffuse color.
|
|
FBAnimatableDouble | DiffuseFactor |
Read Write Property: Diffuse Factor
value. |
|
FBAnimatableColor | DisplacementColor |
Read Write Property: Displacement
color. |
|
FBAnimatableDouble | DisplacementFactor |
Read Write Property: Displacement
Factor value. |
|
FBAnimatableColor | Emissive |
Read Write Property: Emissive color.
|
|
FBAnimatableDouble | EmissiveFactor |
Read Write Property: Emissive Factor
value. |
|
FBAnimatableColor | NormalMap |
Read Write Property: Normal Map.
|
|
FBAnimatableColor | Reflection |
Read Write Property: Reflection
color. |
|
FBAnimatableDouble | ReflectionFactor |
Read Write Property: Reflection
Factor value. |
|
FBAnimatableDouble | Shininess |
Read Write Property: Shininess value.
|
|
FBAnimatableColor | Specular |
Read Write Property: Specular color.
|
|
FBAnimatableDouble | SpecularFactor |
Read Write Property: Specular Factor
value. |
|
FBAnimatableDouble | TransparencyFactor |
Read Write Property: Transparency
Factor value. |
|
FBAnimatableColor | TransparentColor |
Read Write Property: Transparent
color. |
FBMaterial | ( | str | pName | ) |
Constructor.
pName | Name of material. |
FBMaterial Clone | ( | ) |
Clone the material.
This will duplicated the current material.
FBTexture GetTexture | ( | FBMaterialTextureType | p0 =
kFBMaterialTextureDiffuse |
) |
Retrieve associated texture.
p0 | MaterialTextureType to get connected texture from (default is Diffuse is not specified). |
OGLInit | ( | ) |
Setup OpenGL fixed pipeline material settings.
SetTexture | ( | FBTexture | pTexture, | |
FBMaterialTextureType | pType =
kFBMaterialTextureDiffuse |
|||
) |
Set associated texture.
pTexture | texture to be connected. | |
pType | MaterialTextureType to set connected texture to. |
FBAnimatableColor Ambient |
Read Write Property: Ambient color.
FBAnimatableDouble AmbientFactor |
Read Write Property: Ambient Factor value.
FBAnimatableColor Bump |
Read Write Property: Bump.
FBAnimatableDouble BumpFactor |
Read Write Property: Bump Factor value.
FBAnimatableColor Diffuse |
Read Write Property: Diffuse color.
FBAnimatableDouble DiffuseFactor |
Read Write Property: Diffuse Factor value.
FBAnimatableColor DisplacementColor |
Read Write Property: Displacement color.
FBAnimatableDouble DisplacementFactor |
Read Write Property: Displacement Factor value.
FBAnimatableColor Emissive |
Read Write Property: Emissive color.
FBAnimatableDouble EmissiveFactor |
Read Write Property: Emissive Factor value.
FBAnimatableColor NormalMap |
Read Write Property: Normal Map.
FBAnimatableColor Reflection |
Read Write Property: Reflection color.
FBAnimatableDouble ReflectionFactor |
Read Write Property: Reflection Factor value.
FBAnimatableDouble Shininess |
Read Write Property: Shininess value.
FBAnimatableColor Specular |
Read Write Property: Specular color.
FBAnimatableDouble SpecularFactor |
Read Write Property: Specular Factor value.
FBAnimatableDouble TransparencyFactor |
Read Write Property: Transparency Factor value.
FBAnimatableColor TransparentColor |
Read Write Property: Transparent color.