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:
@@ -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]) => {
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user