Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GLSL Branching



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@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >GLSL Branching (From: Alex Drinkwater <email@hidden>)
 >Re: GLSL Branching (From: Allan Schaffer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.