|
@ -150,7 +150,7 @@ material_property* material::add_property(const std::string& name, std::size_ |
|
|
// Attempt to connect property to its corresponding shader input
|
|
|
// Attempt to connect property to its corresponding shader input
|
|
|
if (program) |
|
|
if (program) |
|
|
{ |
|
|
{ |
|
|
property->connect(program->get_input("material." + name)); |
|
|
|
|
|
|
|
|
property->connect(program->get_input(name)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return property; |
|
|
return property; |
|
|