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":{"R":255,"G":255,"B":255,"A":255},"DirectionalLightColor":{"R":255,"G":255,"B":255,"A":255},"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":true,"IsDirectionalLightColorEnabled":false,"IsDirectionalLightDirectionEnabled":false,"IsReset":false,"IsToggle":true,"IsToggleEnabled":false,"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":{"R":255,"G":255,"B":255,"A":255},"DirectionalLightColor":{"R":255,"G":255,"B":255,"A":255},"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":true,"IsDirectionalLightColorEnabled":false,"IsDirectionalLightDirectionEnabled":false,"IsReset":false,"IsToggle":true,"IsToggleEnabled":true,"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":{"R":255,"G":255,"B":255,"A":255},"DirectionalLightColor":{"R":255,"G":255,"B":255,"A":255},"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":true,"IsDirectionalLightColorEnabled":true,"IsDirectionalLightDirectionEnabled":true,"IsReset":true,"IsToggle":true,"IsToggleEnabled":false,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapLightingAdjustmentCommand"}