summaryrefslogtreecommitdiff
path: root/examples/heightmap/main.lua
diff options
context:
space:
mode:
authorjussi2023-11-03 23:12:55 +0200
committerjussi2023-11-03 23:12:55 +0200
commitd74a505d406faf276a265beaf8925d6e8ff9cec0 (patch)
tree72de6e187e0e745f21a9190f5d02895fcecaf83c /examples/heightmap/main.lua
parente61823b8bb69e258370503df7969e4e3c2089e2d (diff)
downloadreilua-enhanced-d74a505d406faf276a265beaf8925d6e8ff9cec0.tar.gz
reilua-enhanced-d74a505d406faf276a265beaf8925d6e8ff9cec0.tar.bz2
reilua-enhanced-d74a505d406faf276a265beaf8925d6e8ff9cec0.zip
Compress/decompress and Encode/Decode DataBase64.
Diffstat (limited to 'examples/heightmap/main.lua')
-rw-r--r--examples/heightmap/main.lua16
1 files changed, 6 insertions, 10 deletions
diff --git a/examples/heightmap/main.lua b/examples/heightmap/main.lua
index aa693fb..51bb153 100644
--- a/examples/heightmap/main.lua
+++ b/examples/heightmap/main.lua
@@ -9,13 +9,12 @@ local TILE_SIZE = 32
local monitor = 0
local camera = {}
-local groundRenderTexture = -1
-local groundTexture = -1
-local tilesetTex = -1
-local heigthImage = -1
-local mesh = -1
-local material = -1
-local lightmap = -1
+local groundRenderTexture = nil
+local groundTexture = nil
+local tilesetTex = nil
+local heigthImage = nil
+local mesh = nil
+local material = nil
local grassRec = { 6 * TILE_SIZE, 0 * TILE_SIZE, TILE_SIZE, TILE_SIZE }
local dirtRec = { 4 * TILE_SIZE, 0 * TILE_SIZE, TILE_SIZE, TILE_SIZE }
@@ -77,8 +76,6 @@ function RL.init()
RL.EndTextureMode()
material = RL.LoadMaterialDefault()
- -- RL.GenTextureMipmaps( groundTexture )
- -- RL.SetTextureFilter( groundTexture, RL.TEXTURE_FILTER_TRILINEAR )
RL.SetMaterialTexture( material, RL.MATERIAL_MAP_ALBEDO, groundTexture )
matrix = RL.MatrixMultiply( RL.MatrixIdentity(), RL.MatrixTranslate( { -4, 0, -4 } ) )
@@ -101,6 +98,5 @@ function RL.draw()
camera:beginMode3D()
RL.DrawMesh( mesh, material, matrix )
- -- camera:draw()
camera:endMode3D()
end