Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gdevelop:documentation:manual:built_layer [2015/10/18 19:20] (current)
Line 1: Line 1:
 +====== Lights extension ======
 +
 +Lights extension provides Light object and Light obstacle behavior.
 +
 +===== Lights =====
 +
 +Lights can be created and placed as any other object. You can change their color, radius ( in pixels ), intensity ( A high intensity will create a bright light ), and quality.
 +
 +Quality represents the initial number of triangles that are going to be used to create the light. Be sure to set the quality to 4 at least. A high number will require more processing power. 16 is usually enough.
 +
 +You can also choose if the light is a global light : Whereas a simple light makes things brighter, a global light makes the whole scene darker, excepting area covered by the light.
 +Currently, only one global light can be used on the scene.
 +
 +**Simple light:**\\
 +{{gdevelop:​documentation:​manual:​newitem53.png?​nolink|}}
 +
 +**Global light:**\\
 +{{gdevelop:​documentation:​manual:​newitem54.png?​nolink|}}
 +
 +
 +===== Light obstacle behavior =====
 +
 +You can added light obstacle behavior to objects so as to prevent lights passing trough them. No setup is required.
 +
 +<note warning>​Using this behavior on a lot of objects can lead to bad performance. You can instead activate this behavior only for objects which are near the light. For example :
 +
 +{{gdevelop:​documentation:​manual:​lightmanagement.png?​nolink|}}</​note>​