From: Frederic Bouvier Date: Sun, 15 Jan 2012 14:58:37 +0000 (+0100) Subject: Boolean uniforms are now updatable by properties X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=66c9187c95fb6861d9737f135fdf68d1bfa265f3;p=simgear.git Boolean uniforms are now updatable by properties --- diff --git a/simgear/scene/material/Effect.cxx b/simgear/scene/material/Effect.cxx index 3cd6a93b..a3064fdf 100644 --- a/simgear/scene/material/Effect.cxx +++ b/simgear/scene/material/Effect.cxx @@ -961,6 +961,11 @@ struct UniformBuilder :public PassAttributeBuilder uniform->setName(name); uniform->setType(uniformType); switch (uniformType) { + case Uniform::BOOL: + initFromParameters(effect, valProp, uniform.get(), + static_cast(&Uniform::set), + options); + break; case Uniform::FLOAT: initFromParameters(effect, valProp, uniform.get(), static_cast(&Uniform::set),