| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Cut and paste the following in a shell window: cat <<EOF >fragmentProgram.cg void main( out float4 color : COLOR, in float2 tc0 : TEXCOORD0, uniform samplerRECT tex0 : TEXUNIT0, uniform float4 gamma : C0 ) { float4 t0 = texRECT(tex0, tc0); color = pow(t0, gamma); } EOF /usr/bin/cgc -profile arbfp1 fragmentProgram.cg This will produce an ARB fragment program that you can feed directly to glProgramStringARB - Emmanuel On May 13, 2005, at 8:37 AM, Peter Zukowski wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden This email sent to email@hidden
| References: | |
| >implementing Cg (From: Peter Zukowski <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.