OGLMaterial.Ambient

Description

Returns the ambient Color of this material.

Examples

VBScript Example

dim grid, color
set grid = ActiveProject.ActiveScene.Root.AddGeometry("Grid", "MeshSurface")
set color = grid.Material.OGLMaterial.Ambient
Application.LogMessage "OGL Material ambient color: " & color.Red & ", " & color.Green & ", " & color.Blue & ", " & color.Alpha