Difference between revisions of "Lighting:General"
(Created page with "Light: General == How to add a light == Press the rightmousebutton on the 2D-window and choose "light", now there is a popup where you fill in your light-intensity. Its by defau...") |
|||
Line 1: | Line 1: | ||
− | + | {{Info|You have to compile your map with the -light option to see any effects.}} | |
== How to add a light == | == How to add a light == | ||
− | Press the | + | Press the right mouse button inside the 2D window and choose "light". You'll be asked for an intensity. You can change it later by selecting the light entity and pressing "n". |
− | |||
− | |||
== How to make a colored light == | == How to make a colored light == | ||
− | + | Select the light entity and press "k". This will open a color selection dialog. | |
− | |||
− | |||
− | == How to create | + | == How to create point lights == |
− | Create a | + | Create a new light entity as described above. |
+ | Create an [[Entities:Info#info_null|info_null entity]] as a target for the light. | ||
+ | Deselect the entity, select the light and select the info_null again. Then press Control-K to connect the light to the entity. | ||
+ | {{Warning|Don't use target_position entities as targets. These entities stay ingame which is not needed for lights.}} | ||
− | + | [[Category:Lighting]] |
Latest revision as of 11:54, 3 September 2011
You have to compile your map with the -light option to see any effects. |
How to add a light
Press the right mouse button inside the 2D window and choose "light". You'll be asked for an intensity. You can change it later by selecting the light entity and pressing "n".
How to make a colored light
Select the light entity and press "k". This will open a color selection dialog.
How to create point lights
Create a new light entity as described above. Create an info_null entity as a target for the light. Deselect the entity, select the light and select the info_null again. Then press Control-K to connect the light to the entity.
Don't use target_position entities as targets. These entities stay ingame which is not needed for lights. |