RavEngine
Loading...
Searching...
No Matches
MaterialShared.hpp
1#pragma once
2
3namespace RavEngine {
4 enum class OpacityMode : uint8_t {
5 Opaque,
6 Transparent
7 };
8
10 union {
11 struct {
12 bool position : 1;
13 bool normal : 1;
14 bool tangent : 1;
15 bool bitangent : 1;
16 bool uv0 : 1;
17 bool lightmapUV : 1;
18 bool padding : 2;
19 };
20 uint8_t bits = 0;
21 };
22
23 bool operator==(const MeshAttributes& other) const {
24 return bits == other.bits;
25 }
26
27
32 bool CompatibleWith(const MeshAttributes& other) const {
33 return (bits & other.bits) == bits;
34 }
35 };
36
37}
uint8 uint8_t
Definition fwd.hpp:103
Definition Animation.hpp:6
Definition MaterialShared.hpp:9
bool CompatibleWith(const MeshAttributes &other) const
Definition MaterialShared.hpp:32