|
|
@@ -53,6 +53,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
* KHR_materials_volume full
|
|
|
* KHR_materials_ior full
|
|
|
* KHR_materials_emissive_strength full
|
|
|
+ * KHR_materials_anisotropy full
|
|
|
*/
|
|
|
#ifndef GLTF2ASSET_H_INC
|
|
|
#define GLTF2ASSET_H_INC
|
|
|
@@ -821,6 +822,15 @@ struct MaterialEmissiveStrength {
|
|
|
void SetDefaults();
|
|
|
};
|
|
|
|
|
|
+struct MaterialAnisotropy {
|
|
|
+ float anisotropyStrength = 0.f;
|
|
|
+ float anisotropyRotation = 0.f;
|
|
|
+ TextureInfo anisotropyTexture;
|
|
|
+
|
|
|
+ MaterialAnisotropy() { SetDefaults(); }
|
|
|
+ void SetDefaults();
|
|
|
+};
|
|
|
+
|
|
|
//! The material appearance of a primitive.
|
|
|
struct Material : public Object {
|
|
|
//PBR metallic roughness properties
|
|
|
@@ -859,6 +869,9 @@ struct Material : public Object {
|
|
|
//extension: KHR_materials_emissive_strength
|
|
|
Nullable<MaterialEmissiveStrength> materialEmissiveStrength;
|
|
|
|
|
|
+ //extension: KHR_materials_anisotropy
|
|
|
+ Nullable<MaterialAnisotropy> materialAnisotropy;
|
|
|
+
|
|
|
//extension: KHR_materials_unlit
|
|
|
bool unlit;
|
|
|
|
|
|
@@ -1133,6 +1146,7 @@ public:
|
|
|
bool KHR_materials_volume;
|
|
|
bool KHR_materials_ior;
|
|
|
bool KHR_materials_emissive_strength;
|
|
|
+ bool KHR_materials_anisotropy;
|
|
|
bool KHR_draco_mesh_compression;
|
|
|
bool FB_ngon_encoding;
|
|
|
bool KHR_texture_basisu;
|
|
|
@@ -1149,6 +1163,7 @@ public:
|
|
|
KHR_materials_volume(false),
|
|
|
KHR_materials_ior(false),
|
|
|
KHR_materials_emissive_strength(false),
|
|
|
+ KHR_materials_anisotropy(false),
|
|
|
KHR_draco_mesh_compression(false),
|
|
|
FB_ngon_encoding(false),
|
|
|
KHR_texture_basisu(false) {
|