What I was told on another mailing list, was that rather than doing if/
else, the GLSL 'way' is to use mix().
Im not sure of the correctness of this claim, but it works
functionally the same. Ive seen a lot of shader code written this way,
but it can hurt readability.
On Feb 27, 2008, at 12:50 PM, Allan Schaffer wrote:
Frequently yes, by design, but sometimes no, it depends on the
hardware capabilities and whether the complexity of the branch
caused a fallback to software.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]