Powertek.OpenGl.PtMaterial.PtMaterial | ( | ) |
object Powertek.OpenGl.PtMaterial.Clone | ( | ) |
create a deep copy object...
void Powertek.OpenGl.PtMaterial.Init | ( | ) |
Init the material.
Vertex3f Powertek.OpenGl.PtMaterial.SampleDiffuse | ( | int | threadId | ) |
Return a Diffuse Sample.
threadId |
void Powertek.OpenGl.PtMaterial.SetDiffuseOnTransparency | ( | ) |
SetDiffuseOnTransparency, for the raytracer the diffuse must be reduced if we want to render the color transparent.
void Powertek.OpenGl.PtMaterial.SetDiffuseSamples | ( | int | numThreads, | |
int | numDiffuseSamples | |||
) |
Set Number of Diffuse Samples.
numThreads | ||
numDiffuseSamples |
void Powertek.OpenGl.PtMaterial.SetMaterial | ( | Vertex3f | diffuse, | |
Vertex3f | specular, | |||
Vertex3f | reflection, | |||
Vertex3f | transparency, | |||
float | shineStrenght, | |||
float | refractionIndex | |||
) |
Set Material Params.
diffuse | ||
specular | ||
reflection | ||
transparency | ||
shineStrenght | ||
refractionIndex |
void Powertek.OpenGl.PtMaterial.SetMaterial | ( | Vertex3f | diffuse, | |
Vertex3f | specular, | |||
Vertex3f | reflection | |||
) |
Set Material Params.
diffuse | ||
specular | ||
reflection |
Set Material Params.
diffuse | ||
specular |
void Powertek.OpenGl.PtMaterial.SetParamChanged | ( | ) |
SetParamChanged, this validates all mat params, call this on every mat param change.
Absorbance.
Mat Ref in ASE File, the index of the mat in the ase file (MatRef).
DiffuseReflectionFac.
incoming Refractive index
outgoing Refractive index
MatClass;.
Material ID, internal id to address the mat (also Array Index...).
Name of the Mat.
PtMatShading Powertek.OpenGl.PtMaterial.MatShading |
MatShading.
Metallic.
Number of SubMaterials.
ReflectionColor.
Oren Nayar Roughness.
Shine.
ShineStrenght.
Specular.
int [] Powertek.OpenGl.PtMaterial.SubMatIDs = null |
Array with SubMaterial ID.
Bump Texture.
Diffuse Texture.
Reflect Texture.
Shine Texture.
ShineStrength Texture.
Transparence Texture.
Transparency.
bool Powertek.OpenGl.PtMaterial.IsDiffuseMat [get] |
Indicates that the Mat is Diffuse.
bool Powertek.OpenGl.PtMaterial.IsMetallic [get] |
Indicates that the Mat is Metallic.
bool Powertek.OpenGl.PtMaterial.IsReflective [get] |
Indicates that the Mat is Reflective.
bool Powertek.OpenGl.PtMaterial.IsSpecular [get] |
Indicates that the Mat is Specular.
bool Powertek.OpenGl.PtMaterial.IsTransparent [get] |
Indicates that the Mat is Transparent.