]> git.mxchange.org Git - simgear.git/commitdiff
Boolean uniforms are now updatable by properties
authorFrederic Bouvier <fredfgfs01@free.fr>
Sun, 15 Jan 2012 14:58:37 +0000 (15:58 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sun, 4 Mar 2012 19:21:32 +0000 (20:21 +0100)
simgear/scene/material/Effect.cxx

index 3cd6a93b7a6166701c442edb2852d21e1ab3fd02..a3064fdf1c95833d7a177195797b1f637f6381de 100644 (file)
@@ -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<bool (Uniform::*)(bool)>(&Uniform::set),
+                               options);
+            break;
         case Uniform::FLOAT:
             initFromParameters(effect, valProp, uniform.get(),
                                static_cast<bool (Uniform::*)(float)>(&Uniform::set),