download the rest of love-gltf, test that its default renderer works on 11.5
This commit is contained in:
parent
3648181f8e
commit
8258ebfa22
|
@ -6,8 +6,8 @@ local text = ""
|
|||
--Set up the canvas.
|
||||
assert( lg.getCanvasFormats( false ).stencil8, "Error: 8-bit stencil buffers not supported on this system." )
|
||||
local stencil = love.graphics.newCanvas(
|
||||
25,
|
||||
50,
|
||||
lg.getWidth(),
|
||||
lg.getHeight(),
|
||||
{
|
||||
type = "2d",
|
||||
format = "stencil8",
|
||||
|
@ -35,8 +35,9 @@ end
|
|||
|
||||
function love.draw()
|
||||
lg.setCanvas{{canvas}, depthstencil = {stencil}}
|
||||
lg.setColor( 1,1,1,1 )
|
||||
lg.rectangle( "fill", 0, 0, 400, 400 )
|
||||
lg.clear()
|
||||
lg.setColor( 1,1,1,0.3 )
|
||||
lg.rectangle( "fill", time * 15.0 , 0, 400, 400 )
|
||||
lg.setCanvas()
|
||||
lg.draw( canvas )
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue