OGLMaterial

Object Hierarchy | Related C++ Class: OGLMaterial

Description

The OGLMaterial object represents the OGL properties of a material object. OGLMaterial objects are read-only. OGLMaterial can be created with Material.OGLMaterial

Properties

Ambient Decay Diffuse ShadingModel
Specular      
       

Examples

VBScript Example

dim grid, oglMat

set grid = ActiveProject.ActiveScene.Root.AddGeometry("Grid", "MeshSurface")

set oglMat = grid.Material.OGLMaterial

Application.LogMessage "OGL material: " & TypeName(oglMat)