Jump to content
  • Advertisement
Sign in to follow this  
PrestoChung

Point sprites in GLSL: replacement for gl_PointCoord

This topic is 2856 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

From what I can gather I need to use gl_PointCoord to pass to my fragment shader as a texture coord. However, this is apparently deprecated now? I get an error "gl_PointCoord cannot be accessed from this profile"

Share this post


Link to post
Share on other sites
Advertisement
For me "gl_PointCoord" is working just fine.

Remember you have to use it in the fragment shader. You must not to pass it from the vertex- to the fragment shader, because it can only be accessed in the fragment shader

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!