heightmap example

This commit is contained in:
Richard Smith 2019-05-21 12:12:03 +01:00
parent ad8d4f06d1
commit 2335c5275f
3 changed files with 77 additions and 85 deletions

View file

@ -8,9 +8,6 @@ SetTargetFPS(60)
camera = ffi.new("struct Camera3D *", [[ 18.0, 16.0, 18.0 ], [ 0.0, 0.0, 0.0 ], [ 0.0, 1.0, 0.0 ], 45.0, 0 ])
# (( 18.0, 16.0, 18.0 ), ( 0.0, 0.0, 0.0 ), ( 0.0, 1.0, 0.0 ), 45.0, 0 )
image = LoadImage(b"resources/heightmap.png") # Load heightmap image (RAM)
texture = LoadTextureFromImage(image) # Convert image to texture (VRAM)