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) {
  fov = json["fov"];
  aspect = json["aspect"];
  near = json["near"];
  far = json["far"];

  updateProjectionMatrix();
}