| get |
set |
Type |
Name |
Description |
|
x |
x |
string |
name |
material's name |
|
x |
|
long |
id |
unique ID of material |
|
x |
x |
MQColor |
color |
base color |
|
x |
x |
float |
alpha |
alpha value |
|
x |
x |
float |
diffuse |
diffuse |
|
x |
x |
float |
ambient |
ambient (monochrome) |
|
x |
x |
MQColor |
ambientColor |
ambient |
|
x |
x |
float |
emissive |
emissive |
|
x |
x |
float |
specular |
specular (monochrome) |
|
x |
x |
MQColor |
specularColor |
specular |
|
x |
x |
float |
power |
power of specular |
|
x |
x |
float |
reflection |
reflection |
|
x |
x |
float |
refraction |
refraction |
|
x |
x |
int |
shader |
shader type
| [0] |
Classic |
| [1] |
Constant |
| [2] |
Lambert |
| [3] |
Phong |
| [4] |
Blinn |
| [5] |
HLSL |
|
|
x |
|
string |
shaderName |
shader's name |
|
x |
x |
string |
shaderFilename |
shader's filename |
|
x |
|
MQShaderNode |
shaderNode |
shader node
| [None] |
Not HLSL or invalid shaderFilename |
| [MQShaderNode] |
HLSL and valid shaderFilename |
|
|
x |
|
dictionary |
subshaderNodes |
sub shader nodes
| [None] |
Not HLSL or invalid shaderFilename |
| [dictionary{string : MQShaderNode}] |
Dictionary for 'sub shader node ID' and 'shader node' |
|
|
x |
x |
int |
vertexColor |
vertex color
|
|
x |
x |
int |
doubleSided |
Show as double sided faces
|
|
x |
x |
int |
mapType |
mapping type
| [0] |
UV mapping |
| [1] |
Flat mapping |
| [2] |
Cylinder mapping |
| [3] |
Sphere mapping |
|
|
x |
x |
MQPoint |
mapScaling |
mapping scaling |
|
x |
x |
MQAngle |
mapAngle |
mapping angle |
|
x |
x |
MQPoint |
mapPosition |
mapping position |
|
x |
x |
string |
textureMap |
filename of texture mapping |
|
x |
x |
string |
alphaMap |
filename of alpha mapping |
|
x |
x |
string |
bumpMap |
filename of bump mapping |
|
x |
x |
int |
textureUVChannel |
UV channel ID of texture mapping
| [0] |
Default UV channel |
| [!= 0] |
An ID that is generated and got by MQDocument.getUVChannelID() |
|
|
x |
x |
int |
alphaUVChannel |
UV channel ID of alpha mapping |
|
x |
x |
int |
bumpUVChannel |
UV channel ID of bump mapping |
|
x |
x |
int |
wrapU |
Border wrapping method for U coordinates of mappings
| [0] |
Repeat |
| [1] |
Mirror |
| [2] |
Clamp |
|
|
x |
x |
int |
wrapV |
Border wrapping method for V coordinates of mappings
| [0] |
Repeat |
| [1] |
Mirror |
| [2] |
Clamp |
|
|
x |
x |
int |
filter |
Filtering for mapping images
| [0] |
Nearest interpolation |
| [1] |
Bilinear interpolation |
|