Jump to content
  • Advertisement
Sign in to follow this  
Mr Kickass

OpenGL OpenGL and HLSL?

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

Advertisement
So once you've made a shader in HLSL, is there anyway to port to an opengl language?

Is there any high level shading language that does both?

Share this post


Link to post
Share on other sites
nvidia's Cg shader language can be used in both DX and OpenGL. Also, i think that the OGRE engine can convert HLSL to OpenGL. It's open source so you might want to check out the code.

Share this post


Link to post
Share on other sites
Learn GLSL, and convert it by hand. Shading languages are usually quite similar, so learning GLSL should be easy, if you already know HLSL.

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!