On 12.04.2007 10:39, Sebastien Marchal wrote: > And nothing happens (The fragment shaders does not get compiled), > because I am guessing (not sure) that the <![CDATA[ ... ]]> protect from > any intervention of the template expansion mechanism inside the Cg > program. Am I right ? Then what would be a reasonable workaround ?
Just "end" the CDATA before a processing instruction and start again after it: <program><![CDATA[ ... ]]> <?if vars."mat hilitecolor"?> <![CDATA[ return tex2D (TexDiffuse, IN.TexCoord) + hiliteColor; ]]> <?else?> <![CDATA[ return tex2D (TexDiffuse, IN.TexCoord); ]]> <?endif?> <![CDATA[ ... ]]> </program> (The parts between if/else and else/endif are so simple that you can probably leave the CDATA away there; I just added them to generally demonstrate were those would have to be put.) -f.r.
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]
