brightness/intensity fixed in unity
This commit is contained in:
+14
-10
@@ -1,23 +1,27 @@
|
|||||||
# Directional Light
|
# Directional Light
|
||||||
|
|
||||||
### Type
|
### Type
|
||||||
|
|
||||||
pre-defined
|
pre-defined
|
||||||
|
|
||||||
### 3D
|
### 3D
|
||||||
|
|
||||||
No visible mesh. Represents a scene-wide directional light source (like the sun).
|
No visible mesh. Represents a scene-wide directional light source (like the sun).
|
||||||
The `target` arg defines the direction the light points toward.
|
The `target` arg defines the direction the light points toward.
|
||||||
Default spawn height is y=5.
|
Default spawn height is y=5.
|
||||||
|
|
||||||
### Custom Args:
|
### Custom Args:
|
||||||
| Key | Type | Implemented | Description |
|
|
||||||
|---|---|---|---|
|
| Key | Type | Implemented | Description |
|
||||||
| color | hexColor | ⚠️ (Creator tbd) | Color of the light |
|
| --------- | -------------------- | ------------------------------ | ------------------------------------------------------------------- |
|
||||||
| intensity | float | ⚠️ **See note below.** | Light intensity (default tbd). |
|
| color | hexColor | ⚠️ (Creator tbd) | Color of the light |
|
||||||
| target | string `"x,y,z"` | ⚠️ (Unity only reads rotation) | World-space look-at point the light aims at |
|
| intensity | float | ✔️ | Light intensity (default 1). |
|
||||||
| grabable | `"true"` / `"false"` | ⚠️ | Whether the item can be grabbed in-experience (common to all types) |
|
| target | string `"x,y,z"` | ⚠️ (Unity only reads rotation) | World-space look-at point the light aims at |
|
||||||
|
| grabable | `"true"` / `"false"` | ⚠️ | Whether the item can be grabbed in-experience (common to all types) |
|
||||||
|
|
||||||
### Special Notes:
|
### Special Notes:
|
||||||
**Key name discrepancy:** The database save format uses `intensity` as the argument key, but `LightManupulationBehaviour.cs` reads `brightness`. Light intensity args may not apply at runtime unless this is resolved.
|
|
||||||
|
**Key name discrepancy:** The database save format uses `intensity` as the argument key. `LightManupulationBehaviour.cs` read `brightness` and "intensity".
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
|
||||||
@@ -25,13 +29,13 @@ Default spawn height is y=5.
|
|||||||
{
|
{
|
||||||
"position": { "x": 0.0, "y": 5.0, "z": 0.0 },
|
"position": { "x": 0.0, "y": 5.0, "z": 0.0 },
|
||||||
"rotation": { "x": 0.0, "y": 0.0, "z": 0.0 },
|
"rotation": { "x": 0.0, "y": 0.0, "z": 0.0 },
|
||||||
"scale": { "x": 1.0, "y": 1.0, "z": 1.0 },
|
"scale": { "x": 1.0, "y": 1.0, "z": 1.0 },
|
||||||
"type": "pre-defined",
|
"type": "pre-defined",
|
||||||
"resourcename": "Directional Light",
|
"resourcename": "Directional Light",
|
||||||
"item-custom-args": [
|
"item-custom-args": [
|
||||||
{ "argument": "color", "value": "#ffffff" },
|
{ "argument": "color", "value": "#ffffff" },
|
||||||
{ "argument": "intensity", "value": "20" },
|
{ "argument": "intensity", "value": "20" },
|
||||||
{ "argument": "target", "value": "0,0,0" }
|
{ "argument": "target", "value": "0,0,0" }
|
||||||
],
|
],
|
||||||
"item-custom-args-adv": null
|
"item-custom-args-adv": null
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-8
@@ -1,21 +1,25 @@
|
|||||||
# Point Light
|
# Point Light
|
||||||
|
|
||||||
### Type
|
### Type
|
||||||
|
|
||||||
pre-defined
|
pre-defined
|
||||||
|
|
||||||
### 3D
|
### 3D
|
||||||
|
|
||||||
No visible mesh. Represents an omnidirectional point light source that emits light equally in all directions.
|
No visible mesh. Represents an omnidirectional point light source that emits light equally in all directions.
|
||||||
Default spawn height is y=2.
|
Default spawn height is y=2.
|
||||||
|
|
||||||
### Custom Args:
|
### Custom Args:
|
||||||
| Key | Type | Implemented | Description |
|
|
||||||
|---|---|---|---|
|
| Key | Type | Implemented | Description |
|
||||||
| color | hexColor | ⚠️ (Creator tbd) | Color of the light |
|
| --------- | -------------------- | ---------------- | ------------------------------------------------------------------- |
|
||||||
| intensity | float | ⚠️ **See note below.** | Light intensity (default 1). |
|
| color | hexColor | ⚠️ (Creator tbd) | Color of the light |
|
||||||
| grabable | `"true"` / `"false"` | ⚠️ | Whether the item can be grabbed in-experience (common to all types) |
|
| intensity | float | ✔️ | Light intensity (default 1). |
|
||||||
|
| grabable | `"true"` / `"false"` | ⚠️ | Whether the item can be grabbed in-experience (common to all types) |
|
||||||
|
|
||||||
### Special Notes:
|
### Special Notes:
|
||||||
**Key name discrepancy:** The database save format uses `intensity` as the argument key, but `PointLightItemBehaviour.cs` reads `brightness`. Light intensity args may not apply at runtime unless this is resolved.
|
|
||||||
|
**Key name discrepancy:** The database save format uses `intensity` as the argument key. `LightManupulationBehaviour.cs` read `brightness` and "intensity".
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
|
||||||
@@ -23,11 +27,11 @@ Default spawn height is y=2.
|
|||||||
{
|
{
|
||||||
"position": { "x": 0.0, "y": 2.0, "z": 0.0 },
|
"position": { "x": 0.0, "y": 2.0, "z": 0.0 },
|
||||||
"rotation": { "x": 0.0, "y": 0.0, "z": 0.0 },
|
"rotation": { "x": 0.0, "y": 0.0, "z": 0.0 },
|
||||||
"scale": { "x": 1.0, "y": 1.0, "z": 1.0 },
|
"scale": { "x": 1.0, "y": 1.0, "z": 1.0 },
|
||||||
"type": "pre-defined",
|
"type": "pre-defined",
|
||||||
"resourcename": "Point Light",
|
"resourcename": "Point Light",
|
||||||
"item-custom-args": [
|
"item-custom-args": [
|
||||||
{ "argument": "color", "value": "#ff0000" },
|
{ "argument": "color", "value": "#ff0000" },
|
||||||
{ "argument": "intensity", "value": "50" }
|
{ "argument": "intensity", "value": "50" }
|
||||||
],
|
],
|
||||||
"item-custom-args-adv": null
|
"item-custom-args-adv": null
|
||||||
|
|||||||
Reference in New Issue
Block a user