Game logic - Light – Ylands
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}") |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=Description= | =Description= | ||
This Game Logic serves as a customizable light source. | This Game Logic serves as a customizable light source. | ||
=Properties= | = Properties = | ||
==Animated== | == Animated == | ||
Enables animation of the light, either by '''Position animator''', '''Rotation animator''' or related scripting tiles. For more information about animation in Ylands editor, check '''[[ | Enables animation of the light, either by '''Position animator''', '''Rotation animator''' or related scripting tiles. For more information about animation in Ylands editor, check '''[[Ylands:Animated_objects|Animated object]]''' page. | ||
==Enabled== | == Enabled == | ||
Enables or disables the game logic. | Enables or disables the game logic. | ||
==Type== | == Type == | ||
===Point Light=== | === Point Light === | ||
Illuminates given space in a radius, defined by the '''Radius''' slider (values 0-30). | Illuminates given space in a radius, defined by the '''Radius''' slider (values 0-30). | ||
<gallery> | <gallery> | ||
File:Ylands-Editor-GL-Light-pointlight.png|thumb|Point Light | File:Ylands-Editor-GL-Light-pointlight.png|thumb|Point Light | ||
</gallery> | </gallery> | ||
===Spot Light=== | === Spot Light === | ||
Illuminates space in a set '''range''' (values 0-100) and '''angle''' (values 0-179). | Illuminates space in a set '''range''' (values 0-100) and '''angle''' (values 0-179). | ||
<gallery> | <gallery> | ||
File:Ylands-Editor-GL-Light-spotlight.png|thumb|Spot Light | File:Ylands-Editor-GL-Light-spotlight.png|thumb|Spot Light | ||
</gallery> | </gallery> | ||
==Color== | == Color == | ||
Color of the light source. | Color of the light source. | ||
==Intensity== | == Intensity == | ||
Intensity slider affects the strength of the light source. | Intensity slider affects the strength of the light source. | ||
==Cast shadows== | == Cast shadows == | ||
If checked, entities present in the light cast by this game logic will cast shadow in the opposite direction of the light source. | If checked, entities present in the light cast by this game logic will cast shadow in the opposite direction of the light source. | ||
= Optimization = | |||
=Related instructions= | Light sources are generally resource taxing and so they should be used sparingly in any given scene. For this reason, it is not possible to select Light in a '''[[Ylands:Game_logic_-_Game_logic_template|Game Logic Template]]'''. | ||
= Related instructions = | |||
*Get/Set Color | *Get/Set Color | ||
*Get/Set Intensity | *Get/Set Intensity | ||
Line 30: | Line 31: | ||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}} | ||
[[Category: Game Logic]] | [[Category: Game Logic]] | ||
[[Category: Ylands 1.5]] | [[Category: Ylands 1.5]] |
Latest revision as of 14:21, 24 November 2023
Description
This Game Logic serves as a customizable light source.
Properties
Animated
Enables animation of the light, either by Position animator, Rotation animator or related scripting tiles. For more information about animation in Ylands editor, check Animated object page.
Enabled
Enables or disables the game logic.
Type
Point Light
Illuminates given space in a radius, defined by the Radius slider (values 0-30).
Spot Light
Illuminates space in a set range (values 0-100) and angle (values 0-179).
Color
Color of the light source.
Intensity
Intensity slider affects the strength of the light source.
Cast shadows
If checked, entities present in the light cast by this game logic will cast shadow in the opposite direction of the light source.
Optimization
Light sources are generally resource taxing and so they should be used sparingly in any given scene. For this reason, it is not possible to select Light in a Game Logic Template.
Related instructions
- Get/Set Color
- Get/Set Intensity