Material getter and get/set for parameters.

This commit is contained in:
jussi
2023-05-19 13:46:24 +03:00
parent 870e3a46a6
commit 335321e3aa
9 changed files with 320 additions and 12 deletions

View File

@@ -71,7 +71,8 @@ end
function RL.draw()
RL.ClearBackground( RL.RAYWHITE )
for _, bunny in ipairs( bunnies ) do
for i = 1, #bunnies do
local bunny = bunnies[i]
-- NOTE: When internal batch buffer limit is reached (MAX_BATCH_ELEMENTS),
-- a draw call is launched and buffer starts being filled again;
-- before issuing a draw call, updated vertex data from internal CPU buffer is send to GPU...

View File

@@ -77,7 +77,6 @@ function RL.init()
},
}
material = RL.CreateMaterial( materialData )
matrix = RL.MatrixMultiply( RL.MatrixIdentity(), RL.MatrixTranslate( { -4, 0, -4 } ) )
end