View Full Version : default value for uniforms
10-24-2005, 05:59 PM
I am just getting started with glsl and was wondering if there is a way to specify default values for uniform variables in a shader so that if the application does not set the uniform variable it has a decent value for the shader. Is this possible?
10-24-2005, 10:07 PM
Nope. You should consider writing code for a shader loader that will automatically do that for you. Have it read the "default values" from a header section of the shader(s) source file(s) and set them right after linking the shaders.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.