diff --git a/packages/frontend/assets/world/lensflare.png b/packages/frontend/assets/world/lensflare.png new file mode 100644 index 0000000000..28a62a42bf Binary files /dev/null and b/packages/frontend/assets/world/lensflare.png differ diff --git a/packages/frontend/src/world/room/objects/woodRingsPendantLight.ts b/packages/frontend/src/world/room/objects/woodRingsPendantLight.ts index c9fdb5fe20..296feb77d7 100644 --- a/packages/frontend/src/world/room/objects/woodRingsPendantLight.ts +++ b/packages/frontend/src/world/room/objects/woodRingsPendantLight.ts @@ -78,6 +78,13 @@ export const woodRingsPendantLight = defineObject({ light.radius = cm(5); if (room?.lightContainer != null) room.lightContainer.addLight(light); + //const lensFlareSystem = new BABYLON.LensFlareSystem('lensFlareSystem', light, scene); + //const flare00 = new BABYLON.LensFlare(0.1, 1.7, new BABYLON.Color3(...options.lightColor), '/client-assets/world/lensflare.png', lensFlareSystem); + //const flare01 = new BABYLON.LensFlare(0.075, 0.5, new BABYLON.Color3(...options.lightColor), '/client-assets/world/lensflare.png', lensFlareSystem); + //const flare02 = new BABYLON.LensFlare(0.05, -0.5, new BABYLON.Color3(...options.lightColor), '/client-assets/world/lensflare.png', lensFlareSystem); + //const flare03 = new BABYLON.LensFlare(0.15, -1.5, new BABYLON.Color3(...options.lightColor), '/client-assets/world/lensflare.png', lensFlareSystem); + //const flare04 = new BABYLON.LensFlare(0.3, -2, new BABYLON.Color3(...options.lightColor), '/client-assets/world/lensflare.png', lensFlareSystem); + const applyLightColor = () => { const [r, g, b] = options.lightColor; light.diffuse = new BABYLON.Color3(r, g, b);