| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Gentlemen,
In this composition:
Attachment:
Possible Bug.zip
Description: Zip archive
kernel vec4 ramp(sampler image, float height)
{
vec4 inputColor = sample(image, samplerCoord(image));
vec4 result;float yLocation = destCoord()[1]/height;
result.r = (yLocation < inputColor.r) ? 1.0 : 0.0;
result.g = (yLocation < inputColor.g) ? 1.0 : 0.0;
result.b = (yLocation < inputColor.b) ? 1.0 : 0.0;
result.a = inputColor.a;return result; }
Any ideas?
-jcr
John C. Randolph <email@hidden> (408) 914-0013 Roaming Cocoa Engineer, Available for your projects at great Expense and Inconvenience.
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.