1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-06 13:24:12 +02:00

Update woodRingFloorLamp.ts

This commit is contained in:
syuilo
2026-04-06 21:41:28 +09:00
parent f6677aa02c
commit f4a060b9a8

View File

@@ -73,6 +73,10 @@ export const woodRingFloorLamp = defineObject({
for (const light of lights) { for (const light of lights) {
light.diffuse = new BABYLON.Color3(r, g, b); light.diffuse = new BABYLON.Color3(r, g, b);
} }
for (const lamp of lamps) {
const emissive = lamp.material as BABYLON.PBRMaterial;
emissive.emissiveColor = new BABYLON.Color3(r, g, b);
}
}; };
applyLightColor(); applyLightColor();
@@ -83,7 +87,7 @@ export const woodRingFloorLamp = defineObject({
} }
for (const lamp of lamps) { for (const lamp of lamps) {
const emissive = lamp.material as BABYLON.PBRMaterial; const emissive = lamp.material as BABYLON.PBRMaterial;
emissive.emissiveIntensity = options.lightBrightness * 5; emissive.emissiveIntensity = options.lightBrightness * 10;
} }
}; };