ChrisMAN Posted October 27, 2012 Posted October 27, 2012 Can buffers have transparency? buffer1 = CreateBuffer(50,50, BUFFER_COLOR) SetBuffer(buffer1) SetColor(Vec4(1,0,0,.1)) DrawRect(0,0, 50, 50) SetBuffer(BackBuffer()) while AppTerminate()==0 doDrawImage(GetColorBuffer(buffer1), 400, 300, 50, 50) end The result is a fully red square. Quote
ChrisMAN Posted October 27, 2012 Author Posted October 27, 2012 SetBlend(1) does the trick http://www.leadwerks.com/werkspace/topic/3394-drawimage-and-transparency/page__hl__transparency Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.