OGLMaterial.Ambient
 
 
 

OGLMaterial.Ambient

Description

Returns the ambient Color of this material.

C# Syntax

// get accessor
Color rtn = OGLMaterial.Ambient;

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