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



Create a sampler type uniform. Use shader builders normal methods to set this value to the desired value. Shader Builder does not currently support multiple passes with code defined uniforms (or similar schemes). I be missing what you are trying to do but the above is the general way to get texture unit ids into a shader.

Geoff Stahl
3D Software Engineer
Apple

On May 29, 2005, at 5:10 AM, tobias ford wrote:

I'm just now starting to play around with Shader Builder and GLSL and I'm trying to just write a pass-through shader with multiple textures to start.

What is it that I need to do in regards to getting a texture sampler. Since these are named from code, I was wondering if SB had some default name specified that I could use in the lookup.

I also don't recall seeing any generic way to access this by texture unit in the orange book.

Thanks.

-------------------
Tobias Ford...
tobias1482 'at' mac.com
tford 'at' soe.sony.com
-------------------
Programmer @ SOE Austin for Star Wars Galaxies

She's so swishy in her satin and tat
In her frock coat and bipperty-bopperty hat
Oh God, I could do better than that

_______________________________________________
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


_______________________________________________ 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>)



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.