On 14.04.2007 10:40, Sebastien Marchal wrote:
> Thancks a lot for the feed-back and the time spend. I'll update
> the text. I have some additional questions though:
> 
>     "(TODO: why an S?)" - you wonder why materials contain references to
>     shaders?
>       
> 
> => Yes, why many shaders are referenced by a material ?

When rendering, multiple shaders can be used for the same material. For
example the shadowing renderloop first renders an "ambient" pass of the
whole scene (which serves to both provide the ambient lighting and some
filling of the Z buffer) and each light in its own pass. For the ambient
and lighting passes different shaders are needed; hence the ability to
attach more than one shader to a material.

>     Technically not entirely correct. The shader plugins references in a CS
>     shader just do some shader setup (setting GL states and such), they
>     don't render stuff themselves. (Rendering is still done by plugins -
>     render loop ones, currently - but the choice of these plugins is *not*
>     affected by the shaders. Quite the opposite: the rendering chooses the
>     shader(s) used for a material.)
> 
> 
> => There is something subtle I don't grasp. What you mean is that (for
> exemple) my Cg code gets called/executed by the
>      render loop ?

Basically yes.

-f.r.

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to