Remove premultipliedAlpha from gltf2
authorDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Thu, 7 Sep 2017 03:43:43 +0000 (23:43 -0400)
committerDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Mon, 11 Sep 2017 15:02:15 +0000 (11:02 -0400)
code/glTF2Asset.h
code/glTF2Asset.inl

index 1711b93..8b226da 100644 (file)
@@ -998,7 +998,6 @@ namespace glTF2
     {
         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.
-        bool premultipliedAlpha; //!< Specifies if the shaders were generated with premultiplied alpha. (default: false)
 
         struct {
             std::string api;     //!< Specifies the target rendering API (default: "WebGL")
@@ -1009,11 +1008,7 @@ namespace glTF2
 
         void Read(Document& doc);
 
-        AssetMetadata()
-            : premultipliedAlpha(false)
-            , version("")
-        {
-        }
+        AssetMetadata() : version("") {}
     };
 
     //
index bc82613..3d4a4ee 100644 (file)
@@ -989,8 +989,6 @@ inline void AssetMetadata::Read(Document& doc)
         ReadMember(*obj, "copyright", copyright);
         ReadMember(*obj, "generator", generator);
 
-        premultipliedAlpha = MemberOrDefault(*obj, "premultipliedAlpha", false);
-
         if (Value* versionString = FindString(*obj, "version")) {
             version = versionString->GetString();
         } else if (Value* versionNumber = FindNumber (*obj, "version")) {