mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-20 19:55:28 +02:00
wip
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -27,12 +27,11 @@ export const speaker = defineObject({
|
|||||||
},
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
hasCollisions: false,
|
hasCollisions: false,
|
||||||
|
hasTexture: false,
|
||||||
|
canPreMeshesMerging: true,
|
||||||
createInstance: ({ options, model }) => {
|
createInstance: ({ options, model }) => {
|
||||||
const outerMesh = model.findMesh('__X_COVER__');
|
const outerMaterial = model.findMaterial('__X_COVER__');
|
||||||
const outerMaterial = outerMesh.material as BABYLON.PBRMaterial;
|
const innerMaterial = model.findMaterial('__X_BODY__');
|
||||||
|
|
||||||
const innerMesh = model.findMesh('__X_BODY__');
|
|
||||||
const innerMaterial = innerMesh.material as BABYLON.PBRMaterial;
|
|
||||||
|
|
||||||
const applyOuterColor = () => {
|
const applyOuterColor = () => {
|
||||||
const [r, g, b] = options.outerColor;
|
const [r, g, b] = options.outerColor;
|
||||||
|
|||||||
Reference in New Issue
Block a user