RenderState in XNA 4

Posted by Shashwat on Game Development See other posts from Game Development or by Shashwat
Published on 2014-05-31T11:17:51Z Indexed on 2014/05/31 16:06 UTC
Read the original article Hit count: 363

Filed under:
|
|
|

I was going through this tutorial for having transparency which can be used to solve my problem here. The code is written in XNA 3 but I'm using XNA 4.

What is the alternative for the following code in XNA 4?

device.RenderState.AlphaTestEnable = true;
device.RenderState.AlphaFunction = CompareFunction.GreaterEqual;
device.RenderState.ReferenceAlpha = 200;
device.RenderState.DepthBufferWriteEnable = false;

I searched a lot but didn't find anything useful.

© Game Development or respective owner

Related posts about XNA

Related posts about xna-4.0