mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-19 21:45:31 +02:00
wip
This commit is contained in:
@@ -53,6 +53,7 @@ export const allInOnePc = defineObject({
|
|||||||
const scale = new BABYLON.Vector3();
|
const scale = new BABYLON.Vector3();
|
||||||
matrix.decompose(scale);
|
matrix.decompose(scale);
|
||||||
|
|
||||||
|
// TODO: graphicsQualityがLOWならそもそも追加しない
|
||||||
const light = new BABYLON.SpotLight('', new BABYLON.Vector3(cm(0), cm(30) / Math.abs(scale.y), 0), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null);
|
const light = new BABYLON.SpotLight('', new BABYLON.Vector3(cm(0), cm(30) / Math.abs(scale.y), 0), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null);
|
||||||
light.parent = model.root;
|
light.parent = model.root;
|
||||||
light.diffuse = new BABYLON.Color3(1.0, 1.0, 1.0);
|
light.diffuse = new BABYLON.Color3(1.0, 1.0, 1.0);
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ export const desktopPc = defineObject({
|
|||||||
hasCollisions: true,
|
hasCollisions: true,
|
||||||
canPreMeshesMerging: true,
|
canPreMeshesMerging: true,
|
||||||
createInstance: ({ options, model, root, scene, room, graphicsQuality }) => {
|
createInstance: ({ options, model, root, scene, room, graphicsQuality }) => {
|
||||||
|
// TODO: graphicsQualityがLOWならそもそも追加しない
|
||||||
const light1 = new BABYLON.SpotLight('', new BABYLON.Vector3(0, cm(10), cm(22)), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null);
|
const light1 = new BABYLON.SpotLight('', new BABYLON.Vector3(0, cm(10), cm(22)), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null);
|
||||||
light1.parent = root;
|
light1.parent = root;
|
||||||
light1.intensity = 0.05 * WORLD_SCALE * WORLD_SCALE;
|
light1.intensity = 0.05 * WORLD_SCALE * WORLD_SCALE;
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ export const laptopPc = defineObject({
|
|||||||
const screenMesh = model.findMesh('__X_SCREEN__');
|
const screenMesh = model.findMesh('__X_SCREEN__');
|
||||||
const hutaNode = model.findTransformNode('__X_HUTA__');
|
const hutaNode = model.findTransformNode('__X_HUTA__');
|
||||||
|
|
||||||
|
// TODO: graphicsQualityがLOWならそもそも追加しない
|
||||||
const light = new BABYLON.SpotLight('', new BABYLON.Vector3(cm(0), cm(10) / Math.abs(scale.y), 0), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null);
|
const light = new BABYLON.SpotLight('', new BABYLON.Vector3(cm(0), cm(10) / Math.abs(scale.y), 0), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null);
|
||||||
light.parent = hutaNode;
|
light.parent = hutaNode;
|
||||||
light.diffuse = new BABYLON.Color3(1.0, 1.0, 1.0);
|
light.diffuse = new BABYLON.Color3(1.0, 1.0, 1.0);
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export const lavaLamp = defineObject({
|
|||||||
|
|
||||||
applyGlassColor();
|
applyGlassColor();
|
||||||
|
|
||||||
|
// TODO: graphicsQualityがLOWならそもそも追加しない
|
||||||
const light = new BABYLON.PointLight('lavaLampLight', new BABYLON.Vector3(0, cm(11), 0), scene, room?.lightContainer != null);
|
const light = new BABYLON.PointLight('lavaLampLight', new BABYLON.Vector3(0, cm(11), 0), scene, room?.lightContainer != null);
|
||||||
light.parent = root;
|
light.parent = root;
|
||||||
light.intensity = 0.03 * WORLD_SCALE * WORLD_SCALE;
|
light.intensity = 0.03 * WORLD_SCALE * WORLD_SCALE;
|
||||||
|
|||||||
Reference in New Issue
Block a user