Game Development Community

More effect on one target

by Misike · in Technical Issues · 09/13/2007 (10:44 am) · 1 replies

Hi for everyone of dear developers!
I have got a problem one that i can not get done. I'll explain now, it might take several rows, i guess.
I have started to write a base of game, i'm talking about an engine one that will works with shaders, lot of lot shaders. Well then, there can be any situations when there are more object (mesh) with also more shaders. (Yeahh, i've forgot to tell to you guys it' hlsl, but nevermind.) It can be situation where need to use one shader on a piece of/full world (for example it can be a shadowmap) and also can be situation where need to use more shader on one subset. Well, here goes the question, how to mix effectes in that way?

About the author

Recent Threads


#1
09/21/2007 (2:15 am)
It's possiuble to have more than one effect on on object. in fact you don't make several shaders on the object, but you do several passes in the shader code and apply it to the object. for instance you can make reflections and refractions and also some more effects in one single shader. but be careful - writing shaders needs very solid knowledge of the gpu. I suppose you are familiar with the count of registers that can be used to make shaders and there are some restrictions in using them.