PDA

View Full Version : Setting uniform values



Aeluned
03-23-2012, 11:57 AM
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.

arekkusu
03-23-2012, 12:05 PM
Yes, uniforms are program state.

Except for subroutine uniforms which are context state.

Aeluned
03-23-2012, 12:10 PM
Cheers.