{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.stfform.at/stfexp.camera.schema.json",
	"title": "3d Camera",
	"description": "A camera with perspective or orthographic projection.",
	"stfImplementations": {
		"blender": {
			"representingType": "bpy.types.Object with bpy.types.Camera",
			"link": "https://codeberg.org/stf_format/stf_blender/src/branch/master/stfblender/stf_resources/stfexp/stfexp_camera.py"
		},
		"godot": {
			"representingType": "Camera3D",
			"link": "https://codeberg.org/stf_format/stf_godot/src/branch/master/addons/stf_godot/resources/stfexp/STFEXP_Camera.gd"
		},
		"unity": {
			"representingType": "Camera",
			"link": "https://codeberg.org/stf_format/stf_unity/src/branch/master/Runtime/Resources/Resources_STFEXP/STFEXP_Camera.cs",
			"extra_links": {
				"Default Processor": "https://codeberg.org/stf_format/stf_unity/src/branch/master/Runtime/Processors/Processors_STFEXP/STFEXP_Camera_Processor.cs"
			}
		}
	},
	"allOf": [{ "$ref": "https://schema.stfform.at/stf.schema.json#/$defs/stf_instance_resource" }],
	"properties": {
		"type": {
			"const": "stfexp.camera"
		},
		"projection": {
			"enum": ["perspective", "orthographic"]
		},
		"aspect_ratio": {
			"type": "number",
			"exclusiveMinimum": 0
		},
		"fov": {
			"type": "number",
			"exclusiveMinimum": 0,
			"description": "Vertical field of view for `perspective` projection or the vertical size of the orthographic plane for `orthographic` projection."
		}
	},
	"required": [
		"type",
		"projection",
		"aspect_ratio",
		"fov"
	],
	"additionalProperties": false
}