From 59ea29d8ff9dad751659a0a42d76a5534f7b4b97 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 16 May 2022 13:44:10 +0300 Subject: New GenMeshCustom, UpdateMesh and lightmap example. --- examples/heightmap/main.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/heightmap/main.lua') 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 ) -- cgit v1.2.3