mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-09-13 07:23:15 +08:00
Updates camera object (glTF 2.0)
This commit is contained in:
parent
ee4693e3a1
commit
a25e495fd9
@ -403,11 +403,20 @@ class Camera {
|
||||
std::string name;
|
||||
bool isOrthographic; // false = perspective.
|
||||
|
||||
// Some common properties.
|
||||
// Orthographic properties
|
||||
float xMag; // required
|
||||
float yMag; // required
|
||||
float zFar; // required
|
||||
float zNear; //required
|
||||
|
||||
// Perspective properties
|
||||
float aspectRatio;
|
||||
float yFov;
|
||||
float zFar;
|
||||
float zNear;
|
||||
float yfov; // required
|
||||
float zfar;
|
||||
float znear; // required
|
||||
|
||||
ParameterMap extensions;
|
||||
Value extras;
|
||||
};
|
||||
|
||||
struct Primitive {
|
||||
|
Loading…
x
Reference in New Issue
Block a user