Jump to content
  • Advertisement
Sign in to follow this  

GLSL Problems on Radeon cards

This topic is 3771 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

Hi, me and my friend have come across a very strange problem. It seems that, for us anyway, GLSL cannot utilize simple variables under Radeon cards (9800 and x1650 confirmed). If we set a local variable X to, say 1, reading it on the next line results in a 0; For example:
vec4 diffuseLighting(int X) {
	return gl_LightSource[X].diffuse;

void main()
	gl_FragColor = diffuseLighting(1);

This code allways displays the diffuse color for LIGHT0. If we, however, change the X to a 1 to directly access LIGHT1 then it works. Could this be a version or a driver problem? Or is GLSL poorly supported on Radeon cards? Any help would be greatly appreciated. Thnx /Mekanikles EDIT: Confirmed that it works on Nvidia cards. [Edited by - Mekanikles on February 22, 2008 4:49:33 AM]

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!