Sign in to follow this  
Roadkill247

Multiple Shaders

Recommended Posts

I'm trying to implement multiple shaders at the same time, but am having difficulty with each time I activate a shader effect, it erases the old effect. I've read up on swap chains and fragmented links and was looking for some simple examples to get me started. Obviously tried google and searching on here, but found nothing specific to what I would like.

Share this post


Link to post
Share on other sites
if your using multiple shaders on a single material i think you need to do multiple parses in order to combine the effects, is possible dependent on what you want to do that you will have to calculate some form of blending factor. multiple post effects should be carried out in the same way.

id recommend looking at the shader X books, which are very good.

if you give a few more details on what you are trying to achieve with what platform / API I might be able to link you some stuff (if its on any things ive used)


maybe have a play around with ATI's rendermonkey or Nvidia's FX composer is alot of examples in these apps and should show you how to do what you require

Share this post


Link to post
Share on other sites
I am using Direct SDK on Vista, just to get a base before I move onto anything else.

Yeh I have been recommended those ShaderX books before, think I might have to make the purchase.

Also have played around with RenderMonkey but not sure how to apply several together, will have to dig deeper into it.

Share this post


Link to post
Share on other sites
yeh, if you load the examples up in rendermonkey you can see some of them use multiple shaders etc

i did have probs with rendermonkey before though, seemed the shaders it created werent the same as they looked in game etc. apparently fx composer is much better but i never used it.


jus trawl through those examples, is probably your best bet

Share this post


Link to post
Share on other sites
ok, trauled through all of those now, can't find what I am looking for, what I'm trying to find is how to:

render to texture
use pixel shader
render to another texture
use pixel shader
render scene

so basically want to run multiple shaders on the scene, as at the moment if i try, the newest pixel shader overwrites the earlier pixel shader.

Any ideas how to do this ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this