   [SlimDX] SetRenderState syntax
  I'm using D3D9 and I'm trying to get my material to show up semi-transparent by adjusting the alpha value of the color.When looking through other tutorials this line comes up (or similar): Device.SetRenderState(RenderState.DiffuseMaterialSource, Material.Color)In SlimDX I can only pass a boolean as the second argument, I've also seen other cases where something else is sent. Any ideas what syntax to use to get my object to show up semi-transparent?
  hi henta.first you need to enable alpha blending:Device.SetRenderState(RenderState.AlphaBlendEnable, true);next in case you use Fixed functions pipeline you should set semi-transparent color:SlimDX.Direct3D9.Material dxmat = new SlimDX.Direct3D9.Material();dxmat.Diffuse = new Color4(0.5f, 1f, 1f, 1f);Device.Material = dxmat;in case you Programmable pipeline (shaders) you just output color with correct alpha component to back buffer..in hope that will help you.   