summaryrefslogtreecommitdiff
path: root/examples/lightmap
diff options
context:
space:
mode:
authorjussi2023-04-10 16:05:45 +0300
committerjussi2023-04-10 16:05:45 +0300
commit6938cdbaede7eb63b9bc2adb9e0a93e243e291ee (patch)
tree67f072df6b9a3d2e9b1f5ab7cc47fd5a62ff50f4 /examples/lightmap
parent1cbadf56f33641e85fc634a326c0db6935947c23 (diff)
downloadreilua-enhanced-6938cdbaede7eb63b9bc2adb9e0a93e243e291ee.tar.gz
reilua-enhanced-6938cdbaede7eb63b9bc2adb9e0a93e243e291ee.tar.bz2
reilua-enhanced-6938cdbaede7eb63b9bc2adb9e0a93e243e291ee.zip
LoadShaderFromMemory fix.
Diffstat (limited to 'examples/lightmap')
-rw-r--r--examples/lightmap/main.lua11
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/lightmap/main.lua b/examples/lightmap/main.lua
index ae81345..a85527e 100644
--- a/examples/lightmap/main.lua
+++ b/examples/lightmap/main.lua
@@ -23,7 +23,6 @@ function RL.init()
RL.SetCamera3DPosition( camera, { 0, 8, 16 } )
RL.SetCamera3DTarget( camera, { 0, 0, 0 } )
RL.SetCamera3DUp( camera, { 0, 1, 0 } )
- RL.SetCameraMode( camera, RL.CAMERA_FREE )
local ts = PLANE_SIZE
local meshData = {
@@ -40,12 +39,6 @@ function RL.init()
}
mesh = RL.GenMeshCustom( meshData, true )
- -- local meshEdit = {
- -- vertices = { { 0, 1, 0 }, { 0, 0, PLANE_SIZE }, { PLANE_SIZE, 0, PLANE_SIZE },
- -- { 0, 1, 0 }, { PLANE_SIZE, 0, PLANE_SIZE }, { PLANE_SIZE, 0, 0 } },
- -- }
- -- RL.UpdateMesh( mesh, meshEdit )
-
tileTexture = RL.LoadTexture( RL.GetBasePath().."../resources/images/tile.png" )
RL.GenTextureMipmaps( tileTexture )
RL.SetTextureFilter( tileTexture, RL.TEXTURE_FILTER_TRILINEAR )
@@ -85,8 +78,8 @@ end
function RL.draw()
RL.ClearBackground( { 25, 50, 50 } )
- RL.UpdateCamera3D( camera )
-
+ RL.UpdateCamera3D( camera, RL.CAMERA_ORBITAL )
+
RL.BeginMode3D( camera )
RL.DrawMesh( mesh, material, matrix )
RL.EndMode3D()