aboutsummaryrefslogtreecommitdiff
path: root/examples/shaders_postprocessing.lua
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-08-06 17:09:57 +0200
committerGitHub <noreply@github.com>2016-08-06 17:09:57 +0200
commit7f9513fbf41e9d340307fc0f9aeed8e5f4293a96 (patch)
tree197829790c7dd766f2b5f44df6e5b64d895b73e4 /examples/shaders_postprocessing.lua
parent3b80e2c1e03e0f87d50ca8876b50a11c7df1f56f (diff)
parent4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5 (diff)
downloadraylib-7f9513fbf41e9d340307fc0f9aeed8e5f4293a96.tar.gz
raylib-7f9513fbf41e9d340307fc0f9aeed8e5f4293a96.zip
Merge pull request #173 from ghassanpl/develop
Fixes for some Lua bugs
Diffstat (limited to 'examples/shaders_postprocessing.lua')
-rw-r--r--examples/shaders_postprocessing.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/shaders_postprocessing.lua b/examples/shaders_postprocessing.lua
index 9e4dfa00..0913fbbd 100644
--- a/examples/shaders_postprocessing.lua
+++ b/examples/shaders_postprocessing.lua
@@ -26,7 +26,7 @@ SetConfigFlags(FLAG.MSAA_4X_HINT) -- Enable Multi Sampling Anti Aliasing 4x
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - postprocessing shader")
-- Define the camera to look into our 3d world
-local camera = Camera(Vector3(3.0, 3.0, 3.0), Vector3(0.0, 1.5, 0.0), Vector3(0.0, 1.0, 0.0), 45.0))
+local camera = Camera(Vector3(3.0, 3.0, 3.0), Vector3(0.0, 1.5, 0.0), Vector3(0.0, 1.0, 0.0), 45.0)
local dwarf = LoadModel("resources/model/dwarf.obj") -- Load OBJ model
local texture = LoadTexture("resources/model/dwarf_diffuse.png") -- Load model texture (diffuse map)
@@ -41,7 +41,7 @@ local shader = LoadShader("resources/shaders/glsl330/base.vs",
local target = LoadRenderTexture(screenWidth, screenHeight)
-- Setup orbital camera
-SetCameraMode(CAMERA.ORBITAL) -- Set an orbital camera mode
+SetCameraMode(CameraMode.ORBITAL) -- Set an orbital camera mode
SetCameraPosition(camera.position) -- Set internal camera position to match our camera position
SetCameraTarget(camera.target) -- Set internal camera target to match our camera target
@@ -52,7 +52,7 @@ SetTargetFPS(60) -- Set our game to run at 60 frames-per-s
while not WindowShouldClose() do -- Detect window close button or ESC key
-- Update
---------------------------------------------------------------------------------------
- UpdateCamera(&camera) -- Update internal camera and our camera
+ UpdateCamera(camera) -- Update internal camera and our camera
---------------------------------------------------------------------------------------
-- Draw
@@ -88,7 +88,7 @@ while not WindowShouldClose() do -- Detect window close button or ESC key
EndDrawing()
---------------------------------------------------------------------------------------
-}
+end
-- De-Initialization
-------------------------------------------------------------------------------------------