1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-15 20:55:46 +02:00

Update issyoubin.ts

This commit is contained in:
syuilo
2026-04-23 17:26:40 +09:00
parent c36dfc6643
commit 4984146f6e

View File

@@ -18,12 +18,14 @@ export const issyoubin = defineObject({
placement: 'top',
hasCollisions: false,
hasTexture: true,
createInstance: ({ model, options }) => {
for (const m of model.root.getChildMeshes()) {
if (m.material != null) {
(m.material as BABYLON.PBRMaterial).separateCullingPass = true;
}
}
createInstance: ({ model, options, scene }) => {
// 以下を行うとレンダリングのグリッチが直るが、残念ながらWebGPUかつNCMでは動作しない
// https://doc.babylonjs.com/setup/support/webGPU/webGPUOptimization/webGPUNonCompatibilityMode/#dodont-in-non-compatibility-mode-ncm
//for (const m of model.root.getChildMeshes()) {
// if (m.material != null) {
// (m.material as BABYLON.PBRMaterial).separateCullingPass = true;
// }
//}
return {
onOptionsUpdated: ([k, v]) => {
},