Define provider-owned planar camera composition
This commit is contained in:
parent
fe81204177
commit
530cc3ac21
2 changed files with 49 additions and 1 deletions
|
|
@ -86,7 +86,19 @@ does not duplicate entity transforms as retained child components.
|
|||
World scenes may also publish generic presentation intent derived from provider
|
||||
state:
|
||||
|
||||
- `cameraTargetEntityId` names the entity the active camera rig should frame;
|
||||
- `cameraRig` names the portable composition algorithm. For
|
||||
`planar.top-down-follow.v1`, the play plane is XZ and the perspective camera
|
||||
looks along negative Y;
|
||||
- `cameraTargetEntityId` is the sole entity the active camera rig frames. A
|
||||
lowerer must not add combat selection, renderer bounds, or another implicit
|
||||
subject to that framing set;
|
||||
- `cameraDistance`, `cameraVerticalFieldOfViewDegrees`,
|
||||
`cameraTargetScreenX`, `cameraTargetScreenY`, and `cameraPositionDamping`
|
||||
define the provider-owned lens and composition. Screen coordinates are
|
||||
normalized viewport coordinates with a bottom-left origin; damping uses the
|
||||
exponential response `1-exp(-damping*deltaTime)`;
|
||||
- `ambientLightColor` and `ambientLightIntensity` define portable flat ambient
|
||||
illumination when the selected camera rig supports it;
|
||||
- `subjectVisible` controls presentation of `playerEntityId` without deleting
|
||||
that authoritative entity from the world view;
|
||||
- `movementEnabled` controls whether the runtime emits movement intents;
|
||||
|
|
|
|||
|
|
@ -172,6 +172,42 @@
|
|||
"cameraTargetEntityId": {
|
||||
"type": "string"
|
||||
},
|
||||
"cameraDistance": {
|
||||
"type": "number",
|
||||
"exclusiveMinimum": 0
|
||||
},
|
||||
"cameraVerticalFieldOfViewDegrees": {
|
||||
"type": "number",
|
||||
"exclusiveMinimum": 0,
|
||||
"exclusiveMaximum": 180
|
||||
},
|
||||
"cameraTargetScreenX": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"cameraTargetScreenY": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"cameraPositionDamping": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"ambientLightColor": {
|
||||
"type": "array",
|
||||
"minItems": 3,
|
||||
"maxItems": 3,
|
||||
"items": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"ambientLightIntensity": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"subjectVisible": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue