Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Toggle main menu visibility
Loading...
Searching...
No Matches
ModelMaterialImporter.hpp
1
#pragma once
2
3
#include <filesystem>
4
5
namespace
Grindstone::Editor::Importers
{
6
struct
StandardMaterialCreateInfo
{
7
std::string materialName =
""
;
8
std::filesystem::path albedoPath;
9
std::filesystem::path specularPath;
10
std::filesystem::path normalPath;
11
std::filesystem::path roughnessPath;
12
float
albedoColor[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
13
float
metalness = 0.0f;
14
float
roughness = 0.5f;
15
};
16
17
void
CreateStandardMaterial(
Grindstone::Editor::AssetRegistry
& assetRegistry,
StandardMaterialCreateInfo
& ci, std::filesystem::path path);
18
void
CreateCutoutMaterial(
Grindstone::Editor::AssetRegistry
& assetRegistry,
StandardMaterialCreateInfo
& ci, std::filesystem::path path);
19
}
Grindstone::Editor::AssetRegistry
Definition
AssetRegistry.hpp:15
Grindstone::Editor::Importers
Definition
AudioImporter.hpp:8
Grindstone::Editor::Importers::StandardMaterialCreateInfo
Definition
ModelMaterialImporter.hpp:6
plugins
Grindstone.Editor.ModelImporter
include
ModelMaterialImporter.hpp
Generated by
1.17.0