Updates camera object (glTF 2.0)

This commit is contained in:
Aurélien Chatelain 2017-05-24 09:52:28 +00:00
parent ee4693e3a1
commit a25e495fd9

View File

@ -403,11 +403,20 @@ class Camera {
std::string name; std::string name;
bool isOrthographic; // false = perspective. 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 aspectRatio;
float yFov; float yfov; // required
float zFar; float zfar;
float zNear; float znear; // required
ParameterMap extensions;
Value extras;
}; };
struct Primitive { struct Primitive {