[Papervision3D] shaders with transparent MovieMaterial?
blackhalim at yahoo.com
Fri Jul 17 17:46:11 PDT 2009
I have a collada object and want to use a transparent (bg with about 50%
alpha) movie as material. When i use only MovieMaterial there is no problem,
but if i want to add some shadow with shaders(FlatShader, GouraudShader...)
i lost the transparency(It seems filled with shader.lightColor). I want to
texture a glass bottle, so it needs to be transparent. Is there a way to use
shaders with transparent objects?
Here is my code:
var m:MovieMaterial = new MovieMaterial(this["mc"], true);
var l:PointLight3D = new PointLight3D();
var s:GouraudShader = new GouraudShader(l, 0xFFFFFF, 0xC7CFD3);
var sm:ShadedMaterial = new ShadedMaterial(m, s);
collada.getChildByName("bottle", true).material = sm;
View this message in context: http://www.nabble.com/shaders-with-transparent-MovieMaterial--tp24543668p24543668.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D