Boolean uniforms are now updatable by properties
This commit is contained in:
parent
cbf8687e3d
commit
66c9187c95
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user