Returns the OGLMaterial for this Material. The OGLMaterial is a read-only object that holds the material rendering information used by OGL.
// get accessor OGLMaterial rtn = Material.OGLMaterial; |
set oRoot = activeproject.activescene.root set oCube = oRoot.AddGeometry("Cube","MeshSurface") set oMaterial = oCube.AddMaterial("Phong") Application.LogMessage "OGL material type: " & typeName (oMaterial.OGLMaterial) |