Mar 21, 2010 at 7:07 PM
Edited Mar 21, 2010 at 9:14 PM
I wonder how can I control transparency of a specific model either textured or just geometry.
I tried like below.
node.Model.Shader = new GloblinXNA.Shaders.SimpleEffectShader();
BasicEffect effect = node.Model.Shader.CurrentEffect as BasicEffect;
effect.Alpha = 0.5f;
effect.GraphicsDevice.RenderState.AlphaBlendEnable = true;
But it shows only 100% opaque model which don't have texture.
Does anyone have ideas?
Thanks in advance :)