LightProbe.fromJson constructor

LightProbe.fromJson(
  1. Map<String, dynamic> json, [
  2. Map<String, dynamic>? rootJson
])

Implementation

factory LightProbe.fromJson(Map<String,dynamic> json, [Map<String,dynamic>? rootJson]){
  SphericalHarmonics3 sh3 = SphericalHarmonics3();
  sh3.fromArray(json['sh']);
  return LightProbe.create(sh3, json['intensity']);
}