Setting uniform values

If I send over some values to uniforms of a given shader, then I unbind the shader. When I enable the shader again later will those uniforms still contain the values sent to them?

I hope I’m making sense.

Thanks.

Yes, uniforms are program state.

Except for subroutine uniforms which are context state.

Cheers.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.