mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-26 16:04:24 +02:00
wip
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -17,15 +17,15 @@ export const colorBox = defineObject({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: {
|
default: {
|
||||||
color: [0.75, 0.75, 0.75],
|
color: [0.6, 0.35, 0.15],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
placement: 'floor',
|
placement: 'floor',
|
||||||
hasCollisions: true,
|
hasCollisions: true,
|
||||||
hasTexture: true,
|
hasTexture: false,
|
||||||
|
canPreMeshesMerging: true,
|
||||||
createInstance: ({ options, model }) => {
|
createInstance: ({ options, model }) => {
|
||||||
const bodyMesh = model.findMesh('__X_BODY__');
|
const bodyMaterial = model.findMaterial('__X_BODY__');
|
||||||
const bodyMaterial = bodyMesh.material as BABYLON.PBRMaterial;
|
|
||||||
|
|
||||||
const applyColor = () => {
|
const applyColor = () => {
|
||||||
const [r, g, b] = options.color;
|
const [r, g, b] = options.color;
|
||||||
|
|||||||
Reference in New Issue
Block a user