SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SaveDefaultMaterial()

bool Spices::MaterialLoader::SaveDefaultMaterial ( )
static

Test function.

Returns
Returns true if load data successfully.
Todo
Move to Test project.

Definition at line 272 of file MaterialLoader.cpp.

273 {
274 /*const std::string outFilePath = SPICES_ENGINE_ASSETS_PATH + "Materials/src/Material.Default.material";
275
276 YAML::Emitter out;
277 out << YAML::BeginMap;
278 out << YAML::Key << "Material" << YAML::Value << "Default";
279
280 out << YAML::Key << "Shaders" << YAML::Value << YAML::BeginSeq;
281 SerializeShaderConfig(out, "vertShader", "MeshRenderer");
282 SerializeShaderConfig(out, "fragShader", "MeshRenderer");
283 out << YAML::EndSeq;
284
285 out << YAML::Key << "Textures" << YAML::Value << YAML::BeginSeq;
286 SerializeTextureConfig(out, "diffuse", { 1, nullptr, "stone_tile_vjqifhu/vjqifhu_4K_Albedo.jpg", 1, 0, 0, { 1, 1, 1 }, 1 });
287 SerializeTextureConfig(out, "normal", { 1, nullptr, "stone_tile_vjqifhu/vjqifhu_4K_Normal.jpg", 1, 0, 1, {1, 1, 1}, 1 });
288 SerializeTextureConfig(out, "specular", { 1, nullptr, "stone_tile_vjqifhu/vjqifhu_4K_Specular.jpg", 1, 0, 2, {1, 1, 1}, 1 });
289 out << YAML::EndSeq;
290
291 YAML::EndMap;
292
293 std::ofstream fout(outFilePath);
294 fout << out.c_str();*/
295
296 return true;
297 }