Hi Oliver,

On Mon, 2005-09-05 at 14:59 +0200, Oliver Kutter wrote:
> Hi all,
> 
> I want to do some multipass shader rendering and I use the 
> MultiPassMaterial. I have set up two ChunkMaterials, which I added to 
> the MultiPassMaterial. I have added for each ChunkMaterial one SHLChunks 
> for the shaders and some other necessary chunks (texture chunks, blend 
> chunk and so on).
> Now, my problem is that I can find no way how to get the result color of 
> the first shader as input to my second shader. Is this possible at all? 
> Or does somebody know a workaround?

It's not easily or directly possible, if you need more than the normal
blending gives you. The blending stage is still not programmable.

If you need to do it you have to render a first image into a texture and
use that in the second pass. Which is possible albeit a little tedious.

But given the capabilities of current hardware that happens very rarely.
Are your calculations so complex that you run out of resources?

        Dirk




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to