Jump to content
  • Advertisement
Sign in to follow this  
lord_balron

Rendering With Only GLSL

This topic is 4166 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
My renderer uses strictly GLSL. I tried to disable the GPU program to draw some unlit lines with Fixed Function PL but couldn't get it to work so I just used my "FlatShader" to draw them.

GLSL makes it way to easy to add new features, I suggest you go for it.

edit: When getting started I asked what shaders I should start with. Here are the shaders I use to give you an idea.

Ready for GLSL
Program Log: c:\media\shaders\shadow.shader <-depth only
Program Log: c:\media\shaders\flat.shader <-no lighting
Program Log: c:\media\shaders\brightfilter.shader <-bright pass filter
Program Log: c:\media\shaders\finalmix.shader <-final scene mixer
Program Log: c:\media\shaders\horizontalblur.shader <-blur filter
Program Log: c:\media\shaders\verticalblur.shader <-blur filter
Program Log: c:\media\shaders\pervertex.shader <-simple lighting
Program Log: c:\media\shaders\simple.shader <-not so simple lighting/shadowing
Program Log: c:\media\shaders\sky.shader <-sky renderer

All but the last 3 are loaded by the renderer for scene independent use. The last 3 are loaded as needed by loading models into the renderer.

Share this post


Link to post
Share on other sites
Yes. The FFP is likely to be deprecated soon so there's no real alternative!

Share this post


Link to post
Share on other sites
It won't be deprecated soon. GL 2.1 is likely to be the last version.
Then comes GL lean and mean, which won't have FFP at all. It will be a thinner API and will be different.

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!