Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
0.8.4:lights [2022/07/21 08:01] – [Spot Light] admin0.8.4:lights [2022/07/22 12:55] (current) – [Multiple Lights] admin
Line 29: Line 29:
 ^LightType ^Description ^ ^LightType ^Description ^
 |TLightType.Directional|A light that gets emitted in a specific direction. This light will behave as though it is infinitely far away and the rays produced from it are all parallel. The common use case for this is to simulate daylight; the sun is far enough away that its position can be considered to be infinite, and all light rays coming from it are parallel.| |TLightType.Directional|A light that gets emitted in a specific direction. This light will behave as though it is infinitely far away and the rays produced from it are all parallel. The common use case for this is to simulate daylight; the sun is far enough away that its position can be considered to be infinite, and all light rays coming from it are parallel.|
 +
 +{{:0.8.4:light_casters_directional.png?nolink|}}
 +
 +[[https://learnopengl.com/Lighting/Light-casters]]
  
 <file pascal> <file pascal>
Line 42: Line 46:
 ^LightType ^Description ^ ^LightType ^Description ^
 |TLightType.Point|A light that gets emitted from a single point in all directions. A common use case for this is to replicate the light emitted from a bare lightbulb.| |TLightType.Point|A light that gets emitted from a single point in all directions. A common use case for this is to replicate the light emitted from a bare lightbulb.|
 +
 +{{:0.8.4:light_casters_point.png?nolink|}}
 +
 +[[https://learnopengl.com/Lighting/Light-casters]]
  
 <file pascal> <file pascal>
Line 56: Line 64:
 |TLightType.Spot|This light gets emitted from a single point in one direction, along a cone that increases in size the further from the light it gets.| |TLightType.Spot|This light gets emitted from a single point in one direction, along a cone that increases in size the further from the light it gets.|
  
-{{:0.8.4:spotlight.jpg?nolink|}} +{{:0.8.4:light_casters_spotlight_angles.png?nolink|}} 
-[[https://subscription.packtpub.com/book/game-development/9781849695046/4/ch04lvl1sec35/implementing-per-fragment-spot-light]]+ 
 +[[https://learnopengl.com/Lighting/Light-casters]]
  
 Take care of some additional properties to configure, when using spot lights. Take care of some additional properties to configure, when using spot lights.
Line 64: Line 73:
 |SpotCutOff|Represents the spot cutoff angle (in degrees) of this TLight.| |SpotCutOff|Represents the spot cutoff angle (in degrees) of this TLight.|
 |SpotExponent|Specifies the intensity distribution of the light.| |SpotExponent|Specifies the intensity distribution of the light.|
 +
 +{{:0.8.4:spotlight.jpg?nolink|}}
 +
 +[[https://subscription.packtpub.com/book/game-development/9781849695046/4/ch04lvl1sec35/implementing-per-fragment-spot-light]]
  
 <file pascal> <file pascal>
Line 90: Line 103:
 |Android 64-Bit| 8 | |Android 64-Bit| 8 |
  
 +Next step: [[terrain|Terrain]]