Remove premultipliedAlpha from gltf2
parent
140b903d7a
commit
a438ece655
|
@ -998,7 +998,6 @@ namespace glTF2
|
||||||
{
|
{
|
||||||
std::string copyright; //!< A copyright message suitable for display to credit the content creator.
|
std::string copyright; //!< A copyright message suitable for display to credit the content creator.
|
||||||
std::string generator; //!< Tool that generated this glTF model.Useful for debugging.
|
std::string generator; //!< Tool that generated this glTF model.Useful for debugging.
|
||||||
bool premultipliedAlpha; //!< Specifies if the shaders were generated with premultiplied alpha. (default: false)
|
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
std::string api; //!< Specifies the target rendering API (default: "WebGL")
|
std::string api; //!< Specifies the target rendering API (default: "WebGL")
|
||||||
|
@ -1009,11 +1008,7 @@ namespace glTF2
|
||||||
|
|
||||||
void Read(Document& doc);
|
void Read(Document& doc);
|
||||||
|
|
||||||
AssetMetadata()
|
AssetMetadata() : version("") {}
|
||||||
: premultipliedAlpha(false)
|
|
||||||
, version("")
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -989,8 +989,6 @@ inline void AssetMetadata::Read(Document& doc)
|
||||||
ReadMember(*obj, "copyright", copyright);
|
ReadMember(*obj, "copyright", copyright);
|
||||||
ReadMember(*obj, "generator", generator);
|
ReadMember(*obj, "generator", generator);
|
||||||
|
|
||||||
premultipliedAlpha = MemberOrDefault(*obj, "premultipliedAlpha", false);
|
|
||||||
|
|
||||||
if (Value* versionString = FindString(*obj, "version")) {
|
if (Value* versionString = FindString(*obj, "version")) {
|
||||||
version = versionString->GetString();
|
version = versionString->GetString();
|
||||||
} else if (Value* versionNumber = FindNumber (*obj, "version")) {
|
} else if (Value* versionNumber = FindNumber (*obj, "version")) {
|
||||||
|
|
Loading…
Reference in New Issue