public GLTFAreaLight(GLTFAreaLight node, GLTFRoot gltfRoot) : base(node, gltfRoot) { if (node == null) { return; } }
public new static GLTFAreaLight Deserialize(GLTFRoot root, JsonReader reader) { var node = new GLTFAreaLight(); while (reader.Read() && reader.TokenType == JsonToken.PropertyName) { var curProp = reader.Value.ToString(); switch (curProp) { case "type": node.type = reader.ReadAsString(); break; case "color": node.color = reader.ReadAsRGBAColor(); break; case "intensity": node.intensity = (float)reader.ReadAsDouble(); break; case "width": node.width = (float)reader.ReadAsDouble(); break; case "height": node.height = (float)reader.ReadAsDouble(); break; case "name": node.name = reader.ReadAsString(); break; } } return(node); }