@hytopia.com/server-protocol 1.4.6 → 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 +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.4.6",
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
@@ -12,7 +12,8 @@ export type WorldSchema = {
12
12
  di?: number; // directional light intensity
13
13
  dp?: VectorSchema; // directional light position
14
14
  fc?: RgbColorSchema; // fog color
15
- fd?: number; // fog density
15
+ ff?: number; // fog far
16
+ fn?: number; // fog near
16
17
  n?: string; // name
17
18
  s?: string; // skyboxUri
18
19
  si?: number; // skybox intensity
@@ -29,7 +30,8 @@ export const worldSchema: JSONSchemaType<WorldSchema> = {
29
30
  di: { type: 'number', nullable: true },
30
31
  dp: { ...vectorSchema, nullable: true },
31
32
  fc: { ...rgbColorSchema, nullable: true },
32
- fd: { type: 'number', nullable: true },
33
+ ff: { type: 'number', nullable: true },
34
+ fn: { type: 'number', nullable: true },
33
35
  n: { type: 'string', nullable: true },
34
36
  s: { type: 'string', nullable: true },
35
37
  si: { type: 'number', nullable: true },