Material.OGLMaterial

Description

Returns the OGLMaterial for this Material. The OGLMaterial is a read-only object that holds the material rendering information used by OGL.

C# Syntax

// get accessor
OGLMaterial rtn = Material.OGLMaterial;

Examples

VBScript Example

set oRoot = activeproject.activescene.root
set oCube = oRoot.AddGeometry("Cube","MeshSurface")
set oMaterial = oCube.AddMaterial("Phong")
Application.LogMessage "OGL material type: " & typeName (oMaterial.OGLMaterial)