Material getter and get/set for parameters.
This commit is contained in:
@@ -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...
|
||||
|
||||
@@ -77,7 +77,6 @@ function RL.init()
|
||||
},
|
||||
}
|
||||
material = RL.CreateMaterial( materialData )
|
||||
|
||||
matrix = RL.MatrixMultiply( RL.MatrixIdentity(), RL.MatrixTranslate( { -4, 0, -4 } ) )
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user