Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am having a video and and image slide show being rendered simultaneously. Both video and the image is being rendered by the help of texture and two different quads. Video is being rendered on the whole screen but the image of the slide show is being rendered along the video on some particular area of the screen. I am using pixel shader to give effects in my slide show but the pixel shader is affecting both the textures being rendered that is my video and the image slide show. But I want it to give effect only to the image slide show. For this I am doing Device.PixelShader=null when the video quad is being drawn but giving my pixel shader to the device when the the image is being drawn. But I want to know that is there any other way that can prevent my video quad from the effect pf the pixel shader.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Yes, that's what you are supposed to do. When you use a shader, it stays bound yo the graphics card until you set a new one, so unselect it when you don't want it to be applied.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.