GLMATERIAL
glmaterial ren=<n>,
color=(r,g,b), alpha=<value> |
ambcol=(r,g,b), difcol=(r,g,b),
specol=(r,g,b), shininess=<value>
Function
Define the material characteristics for the OpenGL rendering.
Parameters
|
ren=<n> |
The index of the material. This value is in the range [1,65535]. |
|
|
|
|
color=(r,g,b) |
The color of the material |
|
alpha=<value> |
The transparency factor. This value is in the range [0,1] where 0 is 100% transparent and 1 is opaque. Default is 1.0. |
|
ambcol=(r,g,b) |
The ambient color factor. The alpha value is 1.0 |
|
difcol=(r,g,b) |
The diffuse color factor. The alpha value is 1.0. |
|
specol=(r,g,b) |
The specular color factor. The alpha value is 1.0. |
|
shininess=<value> |
The shininess (shimmer) factor. This value is in the range [0,100] where 100 represents the most shiny surface. |
Examples
GLmaterial ren=2,col=(0,0,80),alp=0.4
GLmaterial ren=3,dif=(80,100,0),spe=(20,30,0),shi=100
Note
The limits on number of render patterns defined in this command are the same limits that apply to all relevant commands that use the ren= primer as part of their syntax to define an OpenGL render pattern i.e. FACE, PIPES, UFO, SOLID, etc. Note hat OpenGL render is different to render patterning of the advanced renderer.
Each color component's value is in the range [0,100]. Texture Mapping is not supported by this command.
Update 11.7.2: Command introduced
See also