summaryrefslogtreecommitdiff
path: root/examples/instancing
diff options
context:
space:
mode:
authorjussi2023-04-06 19:19:44 +0300
committerjussi2023-04-06 19:19:44 +0300
commitfe15e836bd87963d10bd301a3a24652763059e0d (patch)
treea3bd6dbfcadfb3a5ba10a173d443da0595386d19 /examples/instancing
parent2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a (diff)
downloadreilua-enhanced-fe15e836bd87963d10bd301a3a24652763059e0d.tar.gz
reilua-enhanced-fe15e836bd87963d10bd301a3a24652763059e0d.tar.bz2
reilua-enhanced-fe15e836bd87963d10bd301a3a24652763059e0d.zip
Switched to Raylib vertion 4.5. Removed some functions and added others. Main changes to camera3D.
Diffstat (limited to 'examples/instancing')
-rw-r--r--examples/instancing/main.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/instancing/main.lua b/examples/instancing/main.lua
index b7e4024..2711fab 100644
--- a/examples/instancing/main.lua
+++ b/examples/instancing/main.lua
@@ -36,7 +36,6 @@ function RL.init()
RL.SetCamera3DTarget( camera, { 0, 0, 0 } )
RL.SetCamera3DUp( camera, { 0, 1, 0 } )
RL.SetCamera3DFovy( camera, 45 )
- RL.SetCameraMode( camera, RL.CAMERA_ORBITAL )
-- Define mesh to be instanced
cube = RL.GenMeshCube( { 1, 1, 1 } )
@@ -84,7 +83,7 @@ function RL.init()
end
function RL.process( delta )
- RL.UpdateCamera3D( camera )
+ RL.UpdateCamera3D( camera, RL.CAMERA_ORBITAL )
-- Update the light shader with the camera view position
local loc = RL.GetShaderLocationIndex( shader, RL.SHADER_LOC_VECTOR_VIEW )