From acc56fc7c2bedde6eced005eab0a37b6281b9a23 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 1 May 2023 18:23:36 +0300 Subject: Texture now can be either Texture or RenderTexture. No need to change texture source anymore. --- examples/heightmap/main.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'examples/heightmap/main.lua') 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 -- cgit v1.2.3