GL PROGRAMMABLE RENDERER STOPS glTranslate from WORKING

I’m using shaders (#version 150) for some slitscan effects but setting my current render to glProgrammable renderer it stops glTranslatef() from working which I want to translate objects in the Z dimension. Could anyone please tell me why this happens and if there are any work arounds.

Thanks, any help would be really appreciated.

J

Hi!

glTranslate is long gone in modern OpenGL, which you switched to by using the programmable renderer.
https://www.opengl.org/wiki/Legacy_OpenGL

You can use ofTranslate, etc instead.

Best,
Andreas

Thanks, for some reason I thought ofTranslate only translated in the x and y dimensions.