diff options
| author | jussi | 2023-05-06 23:40:27 +0300 |
|---|---|---|
| committer | jussi | 2023-05-06 23:40:27 +0300 |
| commit | 429a9dff96a5dbe1f526ae7cc6e41815eb862cf0 (patch) | |
| tree | d8e081074498425f17c0fda3d8cb6d929403d1e3 /examples/lightmap | |
| parent | cf92c94097e1e8ce61a6bc73671be4ee5e229571 (diff) | |
| download | reilua-enhanced-429a9dff96a5dbe1f526ae7cc6e41815eb862cf0.tar.gz reilua-enhanced-429a9dff96a5dbe1f526ae7cc6e41815eb862cf0.tar.bz2 reilua-enhanced-429a9dff96a5dbe1f526ae7cc6e41815eb862cf0.zip | |
uluaGetBoundingBoxIndex, IsTextureReady.
Diffstat (limited to 'examples/lightmap')
| -rw-r--r-- | examples/lightmap/main.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/lightmap/main.lua b/examples/lightmap/main.lua index a6a5bde..9dc5609 100644 --- a/examples/lightmap/main.lua +++ b/examples/lightmap/main.lua @@ -23,12 +23,7 @@ function RL.init() RL.SetWindowState( RL.FLAG_VSYNC_HINT ) RL.SetWindowPosition( { mPos[1] + mSize[1] / 2 - winSize[1] / 2, mPos[2] + mSize[2] / 2 - winSize[2] / 2 } ) - -- camera = RL.CreateCamera3D() - -- RL.SetCamera3DPosition( camera, { 0, 8, 16 } ) - -- RL.SetCamera3DTarget( camera, { 0, 0, 0 } ) - -- RL.SetCamera3DUp( camera, { 0, 1, 0 } ) camera = Cam3D:new() - camera:setPosition( { 0, 8, 16 } ) camera:setTarget( { 0, 0, 0 } ) camera:setUp( { 0, 1, 0 } ) @@ -55,9 +50,7 @@ function RL.init() RL.GenTextureMipmaps( tileTexture ) RL.SetTextureFilter( tileTexture, RL.TEXTURE_FILTER_TRILINEAR ) lightmap = RL.LoadTexture( RL.GetBasePath().."../resources/images/lightmap.png" ) - RL.GenTextureMipmaps( lightmap ) RL.SetTextureFilter( lightmap, RL.TEXTURE_FILTER_TRILINEAR ) - RL.SetTextureWrap( lightmap, RL.TEXTURE_WRAP_CLAMP ) shader = RL.LoadShader( RL.GetBasePath().."../resources/shaders/glsl330/lightmap.vs", RL.GetBasePath().."../resources/shaders/glsl330/lightmap.fs" ) @@ -108,5 +101,5 @@ function RL.draw() camera:beginMode3D() RL.DrawMesh( mesh, material, matrix ) - camera:endMode3D() + camera:endMode3D() end |
