added a test box with a partly transparent texture

git-svn-id: svn://anubis/anaglym/trunk@315 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2010-09-17 16:47:43 +00:00
parent 3e3ba194f9
commit 1a2213f39c

View File

@ -4,6 +4,9 @@ function init_event()
image = ag.loadTexture("transparent.png")
local crate = ag.loadModel("crate", {static = true})
ag.setCamera(5, -5, 5)
local box = ag.createBox(1, 1, 1, {enable_blending = true})
box:setPosition(0, 0, 3)
box:setTexture(image)
end
function update_overlay_event(width, height)