View Full Version : saturate() ???
andreasMank
04-12-2004, 10:23 PM
is there any saturate function in glsl??? there are a lot of examples within this function call, but didn't find it in the spezification and while compiling my source i get an error .. so whats up with it??? any ideas??? thx
Sure you're looking at glsl examples and not hlsl or cg? either way, a saturate in glsl is 'res = clamp(value,0.0,1.0);'
andreasMank
04-12-2004, 11:19 PM
thx
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.