Adjust Lighting
Adjust Lighting¶
Modifies the map's ambient and directional lighting settings, including colors and light direction.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Ambient Color | The color of the ambient light applied to the map. | Color |
| Ambient Color Enabled | Whether the ambient light color is updated by this command. | Toggle |
| Direction X | The X component of the directional light direction vector. | Variable or Value |
| Direction Y | The Y component of the directional light direction vector. | Variable or Value |
| Direction Z | The Z component of the directional light direction vector. | Variable or Value |
| Directional Color | The color of the directional light applied to the map. | Color |
| Directional Color Enabled | Whether the directional light color is updated by this command. | Toggle |
| Directional Light Direction Enabled | Whether the directional light direction is updated by this command. | Toggle |
| Is Enabled | Whether the lighting toggle is updated by this command. | Toggle |
| Is Lighting Active | Whether lighting is active on the map. | Toggle |
| Reset to Default | Whether to reset the lighting to the map's default configuration. | Toggle |
Examples¶
Set the Ambient Light Color to White¶
This sets the ambient light color on the map to white.
{"Data":{"AmbientLightColor":"1,1,1,1","DirectionalLightColor":"1,1,1,1","DirectionalLightDirectionX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"DirectionalLightDirectionY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"-1","VariableIndex":0,"Metadata":null},"DirectionalLightDirectionZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsAmbientLightColorEnabled":1,"IsDirectionalLightColorEnabled":0,"IsDirectionalLightDirectionEnabled":0,"IsToggle":1,"IsToggleEnabled":0,"IsReset":0,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapLightingAdjustmentCommand"}
Set Ambient Color and Enable Lighting¶
This sets the ambient light color to white and enables lighting on the map.
{"Data":{"AmbientLightColor":"1,1,1,1","DirectionalLightColor":"1,1,1,1","DirectionalLightDirectionX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"DirectionalLightDirectionY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"-1","VariableIndex":0,"Metadata":null},"DirectionalLightDirectionZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsAmbientLightColorEnabled":1,"IsDirectionalLightColorEnabled":0,"IsDirectionalLightDirectionEnabled":0,"IsToggle":1,"IsToggleEnabled":1,"IsReset":0,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapLightingAdjustmentCommand"}
Reset Lighting to Map Defaults¶
This resets all lighting properties to the map's default configuration.
{"Data":{"AmbientLightColor":"1,1,1,1","DirectionalLightColor":"1,1,1,1","DirectionalLightDirectionX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"DirectionalLightDirectionY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"-1","VariableIndex":0,"Metadata":null},"DirectionalLightDirectionZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsAmbientLightColorEnabled":0,"IsDirectionalLightColorEnabled":0,"IsDirectionalLightDirectionEnabled":0,"IsToggle":1,"IsToggleEnabled":0,"IsReset":1,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapLightingAdjustmentCommand"}