{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.stfform.at/dev.vrm.blendshape_pose.schema.json",
	"title": "VRM Blendshape Pose",
	"description": "Defines a blendshape pose. This is useful for VR/V-Tubing avatars that get will get converted to VRM, since VRM doesn't support animations.",
	"stfImplementations": {
		"blender": {
			"representingType": "STF non-native resource",
			"link": "https://codeberg.org/stf_format/stf_blender/src/branch/master/stfblender/stf_resources/thirdparty/dev_vrm/dev_vrm_blendshape_pose.py"
		},
		"unity": {
			"representingType": "STF resource",
			"link": "https://codeberg.org/stf_format/stf_unity/src/branch/master/AVA/Runtime/Resources/VRM_BlendshapePose.cs"
		}
	},
	"allOf": [{ "$ref": "https://schema.stfform.at/stf.schema.json#/$defs/stf_data_resource" }],
	"properties": {
		"type": {
			"const": "dev.vrm.blendshape_pose"
		},
		"targets": {
			"type": "object",
			"stfKey": "Resource-Ref",
			"patternProperties": {
				"[0-9]+": {
					"type": "object",
					"title": "Blendshape name",
					"patternProperties": {
						".+": {
							"type": "number",
							"title": "Blendshape value"
						}
					}
				}
			},
			"description": "List of blendshape values for each referenced node that instantiates a mesh."
		}
	},
	"required": [
		"type",
		"targets"
	],
	"additionalProperties": false,
	"examples": [
		{
			"type": "dev.vrm.blendshape_pose",
			"name": "Angry",
			"targets": {
				"0": {
					"EyeConstrict": 1.0,
					"EyeSquintLeft": 1.0,
					"EyeSquintRight": 1.0,
					"BrowPinchLeft": 1.0,
					"BrowPinchRight": 1.0,
					"BrowOuterUpLeft": 1.0,
					"BrowOuterUpRight": 1.0,
					"JawOpen": 0.15000000596046448,
					"LipPucker": 0.550000011920929,
					"MouthEdgesOpen": 1.0
				}
			},
			"referenced_resources": [
				"bbff51e8-b34d-4ec4-aca4-3fcecad73309"
			]
		}
	]
}