Frustum math from raylib extras.

This commit is contained in:
jussi
2025-06-02 20:49:51 +03:00
parent e26bb8603c
commit 5b8af05e96
9 changed files with 462 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ function RL.init()
local mSize = Vec2:newT( RL.GetMonitorSize( monitor ) )
local winSize = Vec2:new( 1028, 720 )
RL.SetGCUnload( false )
RL.SetWindowTitle( "Simple Lighting" )
RL.SetWindowState( RL.FLAG_WINDOW_RESIZABLE )
RL.SetWindowState( RL.FLAG_VSYNC_HINT )
@@ -138,3 +139,9 @@ function RL.draw()
RL.DrawText( "Use keys [Y][R][G][B] to toggle lights", { 10, 10 }, 20, RL.DARKGRAY )
end
function RL.exit()
RL.UnloadMaterial( material, true )
RL.UnloadMesh( plane )
RL.UnloadMesh( cube )
end