Top Level Prefabs
Background
Usage You can choose to use texture:
{
"background": {
"texture": "capy.jpeg",
"rotation": 0,
"scale": 1,
"content_mode": "scale_to_fill",
"clear_color": "1 0 0 1"
}
}
Or blur of the real background:
{
"background": {
"blur": 0.5
}
}
Or transparency:
{
"background": {
"transparency": 0.5
}
}
Enable virtual background.
Parameter | Description | Optional | Default Value |
---|---|---|---|
| Sets the background transparency from 0 to 1. |
| |
| Sets the file (image or video) as the background texture. For better perfomance, formats must be used: |
| |
| Rotates the background texture clockwise in degrees. |
| |
| Scales the background texture. |
| |
| Fits the background texture inside frame. Possible values are: |
| |
| Sets the background blur radius. Radius in [0, 1] range. |
| |
| Specifies the color of the area not covered by background texture (e.g. |
|
Preview
foreground
Usage Apply a texture to the whole screen.
{
"foreground": {
"filename": "path/to/texture/file"
}
}
Parameter | Description | Optional | Default Value |
---|---|---|---|
| Path to a PNG texture file. It must have reasonable alpha channel or it will hide the underlying drawings. | + | + |
lut
Usage Apply a color filter (aka LUT).
{
"lut": {
"filename": "path/to/lut/file",
"strength": 0.9
}
}
Parameter | Description | Optional | Default Value |
---|---|---|---|
| Path to the LUT file (usually PNG). | + | + |
| LUT strength. Value in [0, 1]. |
|
Preview
lights
Usage Add up to 4 directional light sources to GLTF models in addition to IBL textures. NOTE that GLTF model is mandatory.
{
"lights": {
"radiance": [
"10 0 0 0",
"0 0 10 0"
],
"direction": [
"-1 0 0",
"1 0 0"
]
}
}
Parameter | Description | Optional | Default Value |
---|---|---|---|
| Array (or a single value for 1 light) of light sources radiances in R, G, B components and light wrap around factor in 4th component. | + | + |
| Array (or a single value for 1 light) of light sources directions in X, Y, Z. | + | + |