mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-06 12:14:11 +02:00
Update woodRingFloorLamp.ts
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user