Relative Content

Tag Archive for openglshadertextureslwjgl

glTexImage3D works only the first time

I’m using glTexImage3D to push a 3D texture (shadow map) to the shader. This works fine the first time. When the buffer changes, I need to push the texture again so that the shader sees the change. This does not work properly for some reason. Strangely, sometimes the shader does see some of the changes in the buffer, but not all of them.