Merge branch 'master' into MemoryOptimizationForGLTFWithSharedAttr

pull/5003/head
Kim Kulling 2023-04-03 20:48:51 +02:00 committed by GitHub
commit 8aa959fa19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View File

@ -513,21 +513,22 @@ struct Camera : public Object {
}; };
Type type; Type type;
struct Perspective {
union {
struct {
float aspectRatio; //!<The floating - point aspect ratio of the field of view. (0 = undefined = use the canvas one) float aspectRatio; //!<The floating - point aspect ratio of the field of view. (0 = undefined = use the canvas one)
float yfov; //!<The floating - point vertical field of view in radians. (required) float yfov; //!<The floating - point vertical field of view in radians. (required)
float zfar; //!<The floating - point distance to the far clipping plane. (required) float zfar; //!<The floating - point distance to the far clipping plane. (required)
float znear; //!< The floating - point distance to the near clipping plane. (required) float znear; //!< The floating - point distance to the near clipping plane. (required)
} perspective; };
struct { struct Ortographic {
float xmag; //! The floating-point horizontal magnification of the view. (required) float xmag; //! The floating-point horizontal magnification of the view. (required)
float ymag; //! The floating-point vertical magnification of the view. (required) float ymag; //! The floating-point vertical magnification of the view. (required)
float zfar; //! The floating-point distance to the far clipping plane. (required) float zfar; //! The floating-point distance to the far clipping plane. (required)
float znear; //! The floating-point distance to the near clipping plane. (required) float znear; //! The floating-point distance to the near clipping plane. (required)
} ortographic; };
union {
struct Perspective perspective;
struct Ortographic ortographic;
}; };
Camera() = default; Camera() = default;

View File

@ -1253,7 +1253,6 @@ IF (ASSIMP_WARNINGS_AS_ERRORS)
-Wno-implicit-fallthrough -Wno-implicit-fallthrough
-Wno-unused-template -Wno-unused-template
-Wno-undefined-func-template -Wno-undefined-func-template
-Wno-nested-anon-types
-Wno-declaration-after-statement -Wno-declaration-after-statement
) )
ELSE() ELSE()