summaryrefslogtreecommitdiff
path: root/examples/heightmap/main.lua
diff options
context:
space:
mode:
authorjussi2023-05-01 18:23:36 +0300
committerjussi2023-05-01 18:23:36 +0300
commitacc56fc7c2bedde6eced005eab0a37b6281b9a23 (patch)
tree6298f7eeee27469f20d6d992c93118aa162b49a8 /examples/heightmap/main.lua
parent8b6337446dd79faf226ea9df40d4d06d81c38436 (diff)
downloadreilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.tar.gz
reilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.tar.bz2
reilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.zip
Texture now can be either Texture or RenderTexture. No need to change texture source anymore.
Diffstat (limited to 'examples/heightmap/main.lua')
-rw-r--r--examples/heightmap/main.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/heightmap/main.lua b/examples/heightmap/main.lua
index ae1f6b8..1b194bb 100644
--- a/examples/heightmap/main.lua
+++ b/examples/heightmap/main.lua
@@ -75,11 +75,9 @@ function RL.init()
RL.EndTextureMode()
material = RL.LoadMaterialDefault()
- RL.SetTextureSource( RL.TEXTURE_SOURCE_RENDER_TEXTURE )
-- RL.GenTextureMipmaps( groundTexture )
-- RL.SetTextureFilter( groundTexture, RL.TEXTURE_FILTER_TRILINEAR )
RL.SetMaterialTexture( material, RL.MATERIAL_MAP_ALBEDO, groundTexture )
- RL.SetTextureSource( RL.TEXTURE_SOURCE_TEXTURE )
matrix = RL.MatrixMultiply( RL.MatrixIdentity(), RL.MatrixTranslate( { -4, 0, -4 } ) )
end