summaryrefslogtreecommitdiff
path: root/examples/heightmap/main.lua
diff options
context:
space:
mode:
authorjussi2022-05-16 13:44:10 +0300
committerjussi2022-05-16 13:44:10 +0300
commit59ea29d8ff9dad751659a0a42d76a5534f7b4b97 (patch)
tree96a901dd2f9884e901b78bdd93c62fe2fe5d9e44 /examples/heightmap/main.lua
parentb034aa01dc0ca443eba7c7b12ead7732c3e32240 (diff)
downloadreilua-enhanced-59ea29d8ff9dad751659a0a42d76a5534f7b4b97.tar.gz
reilua-enhanced-59ea29d8ff9dad751659a0a42d76a5534f7b4b97.tar.bz2
reilua-enhanced-59ea29d8ff9dad751659a0a42d76a5534f7b4b97.zip
New GenMeshCustom, UpdateMesh and lightmap example.
Diffstat (limited to 'examples/heightmap/main.lua')
-rw-r--r--examples/heightmap/main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/heightmap/main.lua b/examples/heightmap/main.lua
index ecc6993..899ab72 100644
--- a/examples/heightmap/main.lua
+++ b/examples/heightmap/main.lua
@@ -7,6 +7,7 @@ local tilesetTex = -1
local heigthImage = -1
local mesh = -1
local material = -1
+local lightmap = -1
local grassRec = { 6 * TILE_SIZE, 0 * TILE_SIZE, TILE_SIZE, TILE_SIZE }
local dirtRec = { 4 * TILE_SIZE, 0 * TILE_SIZE, TILE_SIZE, TILE_SIZE }
@@ -64,6 +65,8 @@ function init()
material = RL_LoadMaterialDefault()
RL_SetTextureSource( TEXTURE_SOURCE_RENDER_TEXTURE )
+ -- RL_GenTextureMipmaps( groundTexture )
+ -- RL_SetTextureFilter( groundTexture, TEXTURE_FILTER_TRILINEAR )
RL_SetMaterialTexture( material, MATERIAL_MAP_ALBEDO, groundTexture )
RL_SetTextureSource( TEXTURE_SOURCE_TEXTURE )