@hytopia.com/server-protocol 1.4.5 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/World.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/World.ts CHANGED
@@ -11,6 +11,9 @@ export type WorldSchema = {
11
11
  dc?: RgbColorSchema; // directional light color
12
12
  di?: number; // directional light intensity
13
13
  dp?: VectorSchema; // directional light position
14
+ fc?: RgbColorSchema; // fog color
15
+ ff?: number; // fog far
16
+ fn?: number; // fog near
14
17
  n?: string; // name
15
18
  s?: string; // skyboxUri
16
19
  si?: number; // skybox intensity
@@ -26,6 +29,9 @@ export const worldSchema: JSONSchemaType<WorldSchema> = {
26
29
  dc: { ...rgbColorSchema, nullable: true },
27
30
  di: { type: 'number', nullable: true },
28
31
  dp: { ...vectorSchema, nullable: true },
32
+ fc: { ...rgbColorSchema, nullable: true },
33
+ ff: { type: 'number', nullable: true },
34
+ fn: { type: 'number', nullable: true },
29
35
  n: { type: 'string', nullable: true },
30
36
  s: { type: 'string', nullable: true },
31
37
  si: { type: 'number', nullable: true },