From 66c9187c95fb6861d9737f135fdf68d1bfa265f3 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sun, 15 Jan 2012 15:58:37 +0100 Subject: [PATCH] Boolean uniforms are now updatable by properties --- simgear/scene/material/Effect.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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), -- 2.39.5