OGLMaterial.Ambient

OGLMaterial.Ambient

説明

このマテリアルのアンビエントColorを戻します。

C#構文

// get accessor

Color rtn = OGLMaterial.Ambient;

VBScript の例

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