Sign in to follow this  
dimensionX

samplerRECT & texRECT in GLSL ?

Recommended Posts

Sunray    188
Yes. From the ARB_texture_rectangle specs:

Quote:

Additions to the OpenGL Shading Language specification

Add the following keywords:

samplerRect
samplerRectShadow

Add to section 8.7 "Texture Lookup Functions"

vec4 textureRect(samplerRect sampler, float coord)
vec4 textureRectProj(samplerRect sampler, float coord)

No "bias" parameter is allowed because mipmaps are not allowed for
texture rectangles.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this