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 texture lookups in shader builder



To the best of my knowledge the program below should pass through the second unit texture, but It's always using the first texture.

uniform sampler2D texture0;
uniform sampler2D texture1;

See the list of uniforms on the right? See texture0 and texture1 in there? The values of their X components determine which texture units they're bound to. Set texture0's X to 0 and texture1's X to 1 to get the effect the names suggest, but there are other possibilities too ;)


-Keith

_______________________________________________
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: 
 >Re: Motion Blur at 30 fps (From: Lorenzo Puleo <email@hidden>)
 >GLSL texture lookups in shader builder (From: tobias ford <email@hidden>)
 >Re: GLSL texture lookups in shader builder (From: Geoff Stahl <email@hidden>)
 >Re: GLSL texture lookups in shader builder (From: tobias ford <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.