Open14日前にコメント追加6Babylon.jsの公式docsにあるGIのデモがコンパイルエラーになるTypeScriptBabylon.jsにー兄さん14日前ここのページにあるサンプルの多くがコンパイルエラーに https://doc.babylonjs.com/features/featuresDeepDive/lights/rsmgi にー兄さん14日前に更新コンパイルエラーになるサンプルはこちら。軒並みだな https://playground.babylonjs.com/#VW8IG3#11 https://playground.babylonjs.com/#VW8IG3#9 https://playground.babylonjs.com/#VW8IG3#10 https://playground.babylonjs.com/#VW8IG3#14 https://playground.babylonjs.com/#VW8IG3#13 https://playground.babylonjs.com/#VW8IG3#15 https://playground.babylonjs.com/#VW8IG3#16 https://playground.babylonjs.com/#VW8IG3#17 https://playground.babylonjs.com/#VW8IG3#18 https://playground.babylonjs.com/#VW8IG3#19 https://playground.babylonjs.com/#VW8IG3#9 にー兄さん14日前これはおそらくEngine周りのクラスの継承関係が変わったからだと思われる 今の状態はこれ にー兄さん14日前まぁなので、Engineになってる部分を一回AbstractEngineにasでアップキャストして、WebGPUEngineにダウンキャストしてみればコンパイル自体は通る。これがいいのかわからないけど にー兄さん14日前7.0.0の時点ではこうだったんだな にー兄さん14日前こういう感じにすれば、汚いけど解決する
にー兄さん14日前に更新コンパイルエラーになるサンプルはこちら。軒並みだな https://playground.babylonjs.com/#VW8IG3#11 https://playground.babylonjs.com/#VW8IG3#9 https://playground.babylonjs.com/#VW8IG3#10 https://playground.babylonjs.com/#VW8IG3#14 https://playground.babylonjs.com/#VW8IG3#13 https://playground.babylonjs.com/#VW8IG3#15 https://playground.babylonjs.com/#VW8IG3#16 https://playground.babylonjs.com/#VW8IG3#17 https://playground.babylonjs.com/#VW8IG3#18 https://playground.babylonjs.com/#VW8IG3#19 https://playground.babylonjs.com/#VW8IG3#9
にー兄さん14日前まぁなので、Engineになってる部分を一回AbstractEngineにasでアップキャストして、WebGPUEngineにダウンキャストしてみればコンパイル自体は通る。これがいいのかわからないけど