This structure defines a surface material. The surface material can be quite complex because it allows for external shaders to be loaded and used to render each pixel. (The external shaders should be "thread safe".
Definition at line 302 of file RENDER.H.
Data Fields | |
axis | ax |
The material's base axis. | |
unsigned char | color [3] |
unsigned char | texco [3] |
basic/diffuse & texture color | |
unsigned char | acolour [3] |
unsigned char | scolour [3] |
ambient and specular values | |
unsigned char | xc [3] |
unsigned char | yc [3] |
unsigned char | zc [3] |
unsigned char | gloss |
Glossy setting. | |
unsigned char | refl |
Reflectivity setting. | |
unsigned char | transp |
Transparency setting. | |
long | refractive_index |
BOOL | bInternalShader |
Identifies an Internal shader is in use. | |
int | internalShaderID |
What internal shader is in use. | |
long | shaderID [4] |
Which shader (up to 4 per material). | |
BOOL | bSmooth |
BOOL | bShiny |
BOOL | bClear |
BOOL | bGlassEdge |
BOOL | bUseSurfaceMapping |
Flags to define material effects in use. | |
unsigned char | params [16] |
Reserved for expansion. | |
unsigned char | other_properties [512] |
Reserved for special versions of the Renderer. | |
double | mmw_params [12] |
Reserved for special purposes in other versions of the renderer. |
The material's base axis.
Definition at line 303 of file RENDER.H.
Referenced by DrawExternalMaterialPolys().
unsigned char color[3] |
Definition at line 304 of file RENDER.H.
Referenced by DrawExternalMaterialPolys(), and GetPixelValue().
unsigned char texco[3] |
basic/diffuse & texture color
Definition at line 304 of file RENDER.H.
Referenced by GetInternalTexture(), and GetPixelValue().
unsigned char gloss |
unsigned char refl |
unsigned char transp |
Transparency setting.
Definition at line 309 of file RENDER.H.
Referenced by GetPixelValue(), and GetRowPixelValue().
long refractive_index |
BOOL bInternalShader |
Identifies an Internal shader is in use.
Definition at line 311 of file RENDER.H.
Referenced by GetPixelValue().
int internalShaderID |
What internal shader is in use.
Definition at line 312 of file RENDER.H.
Referenced by GetPixelValue().
long shaderID[4] |
Which shader (up to 4 per material).
Definition at line 313 of file RENDER.H.
Referenced by GetPixelValue().
BOOL bSmooth |
Definition at line 314 of file RENDER.H.
Referenced by FastAntiAliasShadedScanline(), GetSurfaceValue(), and ShadedScanline().
BOOL bShiny |
BOOL bGlassEdge |
BOOL bUseSurfaceMapping |
unsigned char params[16] |
Reserved for expansion.
Definition at line 319 of file RENDER.H.
Referenced by GetInternalTexture(), and GetPixelValue().
unsigned char other_properties[512] |
double mmw_params[12] |