Basically a third float value ("alpha" or "factoralpha") that regulates the overall alpha value of EMT_TRANSPARENT_...
Needs changes for CMaterialRenderer.h
d3d: uses texturefactor (renderstate) and a alphastate ALPHAOP1 = MODULATE with ALPHAARG1 = texture; ALPHAARG2 = texturefactor
I think there's an equivalent for OGL. Should be easy to implement for the software drivers as well.
Advantage: Easy fade in/fade out for single scene nodes without change of the vertex alpha values.
New feature: alpha for alpha materials
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
I'm liking it. I don't know how practical it will be, but it would certainly be useful.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
I'll second that.
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info