Rendering With Only GLSL
Just a question, is it possible to write a renderer with just GLSL and not using fixed pipe programming.
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.
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.
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.
Then comes GL lean and mean, which won't have FFP at all. It will be a thinner API and will be different.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement