@hytopia.com/server-protocol 1.4.5 → 1.4.6

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 +4 -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.6",
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,8 @@ 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
+ fd?: number; // fog density
14
16
  n?: string; // name
15
17
  s?: string; // skyboxUri
16
18
  si?: number; // skybox intensity
@@ -26,6 +28,8 @@ export const worldSchema: JSONSchemaType<WorldSchema> = {
26
28
  dc: { ...rgbColorSchema, nullable: true },
27
29
  di: { type: 'number', nullable: true },
28
30
  dp: { ...vectorSchema, nullable: true },
31
+ fc: { ...rgbColorSchema, nullable: true },
32
+ fd: { type: 'number', nullable: true },
29
33
  n: { type: 'string', nullable: true },
30
34
  s: { type: 'string', nullable: true },
31
35
  si: { type: 'number', nullable: true },