PerspectiveCamera.fromJSON constructor

PerspectiveCamera.fromJSON(
  1. Map<String, dynamic> json,
  2. Map<String, dynamic> rootJSON
)

Implementation

PerspectiveCamera.fromJSON(Map<String, dynamic> json, Map<String, dynamic> rootJSON)
    : super.fromJSON(json, rootJSON) {
  type = "PerspectiveCamera";
  fov = json["fov"];
  aspect = json["aspect"];
  near = json["near"];
  far = json["far"];

  updateProjectionMatrix();
}