Multiple Shaders
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.
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
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
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.
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.
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
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
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 ?
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 ?
Maybe you should implement alpha blending - so every time a shader draw, it adds to the current buffer!
I use it for either multi-texturing and multi-effect!
I use it for either multi-texturing and multi-effect!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement