Description
Lighting in the 3D scene.
Public Properties
Example
Set Vehicle Lighting Properties
[MATLAB] |
---|
% IAgSatellite satellite: Satellite object
lighting = satellite.Graphics.Lighting;
% Settings for vehicle in sunlight
sunlight = lighting.Sunlight;
sunlight.Visible = true;
sunlight.Color = 65535; % yellow
sunlight.LineWidth = 3;
% Settings for vehicle in penumbra
penumbra = lighting.Penumbra;
penumbra.Visible = true;
penumbra.Color = 42495; % orange
penumbra.LineWidth = 2;
% Settings for vehicle in umbra
umbra = lighting.Umbra;
umbra.Visible = true;
umbra.Color = 255; % red
umbra.LineWidth = 1;
|
|
Control the Lighting of the 3D scene
[MATLAB] |
---|
% IAgScenario scenario: Scenario object
% Modify the lighting levels
manager = scenario.SceneManager;
lighting = manager.Scenes.Item(0).Lighting;
lighting.AmbientIntensity = .20; % Percent
lighting.DiffuseIntensity = 4; % Percent
lighting.NightLightsIntensity = 5; % Percent
|
|