Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

error in texture2d grad in glsl

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 vinesh   Members   

101
Like
0Likes
Like

Posted 23 March 2013 - 04:25 AM

i have posted a rar file which contains a code and if i try to execcute the ocean.exe in the rar file its showing error aas given in the screen shot..

please help me in fixing it...

Attached Thumbnails

  • ocean error.jpg

Attached Files



#2 x6itru   Members   

149
Like
0Likes
Like

Posted 23 March 2013 - 05:47 AM

shaders are correct, its working for me on HD4870 ;p What is your gpu?



#3 powly k   Members   

657
Like
0Likes
Like

Posted 23 March 2013 - 09:14 AM

Shaders are not correct, texture2DGrad doesn't exist since GLSL 1.3 - use textureGrad instead, it automatically chooses the dimension based on the sampler you pass as argument.



#4 x6itru   Members   

149
Like
0Likes
Like

Posted 23 March 2013 - 10:29 AM

he didnt specify which glsl version he's using.






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.