Skip to content
Snippets Groups Projects
Commit bfcc7b32 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#82] Add asset loader tangent attribute

parent d0c5ea10
No related branches found
No related tags found
1 merge request!70Resolve "Voxel cone tracing"
......@@ -114,7 +114,8 @@ enum class PrimitiveType : uint32_t {
POSITION = 1,
NORMAL = 2,
TEXCOORD_0 = 3,
TEXCOORD_1 = 4
TEXCOORD_1 = 4,
TANGENT = 5
};
/** These integer values are used the same way in OpenGL, Vulkan and glTF. This
......
......@@ -177,8 +177,11 @@ int loadScene(const std::string &path, Scene &scene){
attribute.type = PrimitiveType::NORMAL;
} else if (attrib.first == "TEXCOORD_0") {
attribute.type = PrimitiveType::TEXCOORD_0;
} else if (attrib.first == "TEXCOORD_1") {
}
else if (attrib.first == "TEXCOORD_1") {
attribute.type = PrimitiveType::TEXCOORD_1;
} else if (attrib.first == "TANGENT") {
attribute.type = PrimitiveType::TANGENT;
} else {
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment