summaryrefslogtreecommitdiff
path: root/examples/2D_lights
diff options
context:
space:
mode:
authorjussi2024-01-03 18:23:19 +0200
committerjussi2024-01-03 18:23:19 +0200
commit70a2bcba18aa9855380c132f89e26b61bfd2cb40 (patch)
tree7f5d18d0d82afc352b5c75c68b136f4e2f6850d0 /examples/2D_lights
parent192d471fb3caaa6d73796185e5cadc62075743f7 (diff)
downloadreilua-enhanced-70a2bcba18aa9855380c132f89e26b61bfd2cb40.tar.gz
reilua-enhanced-70a2bcba18aa9855380c132f89e26b61bfd2cb40.tar.bz2
reilua-enhanced-70a2bcba18aa9855380c132f89e26b61bfd2cb40.zip
Rest of font loading/unloading functions. GlyphInfo type to userdata. GlyphInfo management functions.
Diffstat (limited to 'examples/2D_lights')
-rw-r--r--examples/2D_lights/main.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/2D_lights/main.lua b/examples/2D_lights/main.lua
index 9c033eb..d3aa4e9 100644
--- a/examples/2D_lights/main.lua
+++ b/examples/2D_lights/main.lua
@@ -103,21 +103,21 @@ function RL.init()
createShadowMesh()
- addLight( Vector2:new( 230, 480 ), Color:new( RL.ORANGE ), 512 )
- addLight( Vector2:new( 600, 200 ), Color:new( RL.RED ), 512 )
- addLight( Vector2:new( 384, 520 ), Color:new( RL.GREEN ), 400 )
- addLight( Vector2:new( 880, 750 ), Color:new( RL.BLUE ), 300 )
- addLight( Vector2:new( 800, 500 ), Color:new( RL.PURPLE ), 512 )
- addLight( Vector2:new( 200, 760 ), Color:new( RL.WHITE ), 400 )
+ -- addLight( Vector2:new( 230, 480 ), Color:new( RL.ORANGE ), 512 )
+ -- addLight( Vector2:new( 600, 200 ), Color:new( RL.RED ), 512 )
+ -- addLight( Vector2:new( 384, 520 ), Color:new( RL.GREEN ), 400 )
+ -- addLight( Vector2:new( 880, 750 ), Color:new( RL.BLUE ), 300 )
+ -- addLight( Vector2:new( 800, 500 ), Color:new( RL.PURPLE ), 512 )
+ -- addLight( Vector2:new( 200, 760 ), Color:new( RL.WHITE ), 400 )
-- Stress test
- -- for i = 1, 300 do
- -- addLight( Vector2:new( math.random( 20, RESOLUTION.x - 20 ), math.random( 20, RESOLUTION.y - 20 ) ),
- -- Color:new( { math.random( 40, 255 ), math.random( 40, 255 ), math.random( 40, 255 ), 255 } ),
- -- 128
- -- )
- -- end
+ for i = 1, 300 do
+ addLight( Vector2:new( math.random( 20, RESOLUTION.x - 20 ), math.random( 20, RESOLUTION.y - 20 ) ),
+ Color:new( { math.random( 40, 255 ), math.random( 40, 255 ), math.random( 40, 255 ), 255 } ),
+ 128
+ )
+ end
-- Camera for shadow rendering.
camera = RL.CreateCamera3D()