rifter1818
Junior Contributor
This is odd but when i enable lighting everything disapears, however Ambient is set to white?
Also i still cant get my engine to use Black as transparant.
d3d.Dev.RenderState.Lighting = true;
d3d.Dev.RenderState.Ambient = Color.White;
d3d.Dev.RenderState.CullMode = Cull.None;
d3d.Dev.RenderState.AlphaBlendEnable = true;
d3d.Dev.RenderState.AlphaTestEnable = true;
d3d.Dev.RenderState.ReferenceAlpha = Color.Black.ToArgb();
d3d.Dev.RenderState.AlphaFunction = Compare.NotEqual;
d3d.Dev.RenderState.AlphaSourceBlend = Blend.SourceAlpha;
d3d.Dev.RenderState.AlphaDestinationBlend = Blend.InvSourceAlpha;
d3d.Dev.RenderState.ColorVertex = true;
d3d.Dev.RenderState.AlphaBlendOperation = BlendOperation.Add;
Also i still cant get my engine to use Black as transparant.
d3d.Dev.RenderState.Lighting = true;
d3d.Dev.RenderState.Ambient = Color.White;
d3d.Dev.RenderState.CullMode = Cull.None;
d3d.Dev.RenderState.AlphaBlendEnable = true;
d3d.Dev.RenderState.AlphaTestEnable = true;
d3d.Dev.RenderState.ReferenceAlpha = Color.Black.ToArgb();
d3d.Dev.RenderState.AlphaFunction = Compare.NotEqual;
d3d.Dev.RenderState.AlphaSourceBlend = Blend.SourceAlpha;
d3d.Dev.RenderState.AlphaDestinationBlend = Blend.InvSourceAlpha;
d3d.Dev.RenderState.ColorVertex = true;
d3d.Dev.RenderState.AlphaBlendOperation = BlendOperation.Add;