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