intrinsic-191 Set3DMaterials |
Top Previous Next |
191: Set3DMaterials(Handle, Mode, Color);
This intrinsic sets the way light is emitted from and reflected off the object.
Arguments:
Handle. This argument is an integer handle created by the Add3DObject intrinsic. The object must be a 3D mesh.
Mode. This is an integer value that specifies which material properties are being set.
0 = Emission. When this mode is selected, the Color value specifies the color and intensity of the light emitted from the object. Using high intensity colors for this parameter makes the object appear to be glowing from its interior.
1 = Specular. When this mode is selected, the Color value specifies the color and intensity of specular highlights. A specular highlight is the small shiny spot that appears on an object when a light shines on it.
2 = Shininess. When this mode is selected, the red value of the Color specifies how reflective or shiny the object appears. Red values of 0 means the object appears matted, with no shininess at all. Values of 255 means the object will appear to be very shiny.
Color: This is an integer value that specifies the RGB Color of the material. |