Archived
1
Fork 0

Load vec3 constant node types from disk

This commit is contained in:
redstrate 2020-08-18 09:16:35 -04:00
parent e1205662ec
commit 6656bd8e58

View file

@ -282,6 +282,8 @@ std::unique_ptr<Material> load_material(const file::Path path) {
n = std::make_unique<TextureNode>(); n = std::make_unique<TextureNode>();
} else if(name == "Float Constant") { } else if(name == "Float Constant") {
n = std::make_unique<FloatConstant>(); n = std::make_unique<FloatConstant>();
} else if(name == "Vector3 Constant") {
n = std::make_unique<Vector3Constant>();
} }
n->id = node["id"]; n->id = node["id"];