feat: update Filament to v1.56.4
This commit is contained in:
@@ -38,6 +38,23 @@ namespace filament::gltfio {
|
||||
|
||||
class NodeManager;
|
||||
|
||||
// Use this struct to enable mikktspace-based tangent-space computation.
|
||||
/**
|
||||
* \struct AssetConfigurationExtended AssetLoader.h gltfio/AssetLoader.h
|
||||
* \brief extends struct AssetConfiguration
|
||||
* Useful if client needs mikktspace tangent space computation.
|
||||
* NOTE: Android, iOS, Web are not supported. And only disk-local glTF resources are supported.
|
||||
*/
|
||||
struct AssetConfigurationExtended {
|
||||
//! Optional The same parameter as provided to \struct ResourceConfiguration ResourceLoader.h
|
||||
//! gltfio/ResourceLoader.h
|
||||
char const* gltfPath;
|
||||
|
||||
//! Client can use this method to check if the extended implementation is supported on their
|
||||
//! platform or not.
|
||||
static bool isSupported();
|
||||
};
|
||||
|
||||
/**
|
||||
* \struct AssetConfiguration AssetLoader.h gltfio/AssetLoader.h
|
||||
* \brief Construction parameters for AssetLoader.
|
||||
@@ -62,6 +79,10 @@ struct AssetConfiguration {
|
||||
|
||||
//! Optional default node name for anonymous nodes
|
||||
char* defaultNodeName = nullptr;
|
||||
|
||||
//! Optional to enable mikktspace tangents. Lifetime of struct only needs to be maintained for
|
||||
// the duration of the constructor of AssetLoader.
|
||||
AssetConfigurationExtended* ext = nullptr;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -93,10 +93,17 @@ struct alignas(4) MaterialKey {
|
||||
bool hasSheen : 1;
|
||||
bool hasIOR : 1;
|
||||
bool hasVolume : 1;
|
||||
uint8_t padding : 5;
|
||||
bool hasSpecular : 1;
|
||||
bool hasSpecularTexture : 1;
|
||||
bool hasSpecularColorTexture : 1;
|
||||
bool padding : 2;
|
||||
// -- 32 bit boundary --
|
||||
uint8_t specularTextureUV;
|
||||
uint8_t specularColorTextureUV;
|
||||
uint16_t padding2;
|
||||
};
|
||||
|
||||
static_assert(sizeof(MaterialKey) == 16, "MaterialKey has unexpected size.");
|
||||
static_assert(sizeof(MaterialKey) == 20, "MaterialKey has unexpected size.");
|
||||
|
||||
UTILS_WARNING_POP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user