internal: expose more RenderableManager/LightManager bindings

This commit is contained in:
Nick Fisher
2025-01-06 18:57:26 +08:00
parent 6cefe44c64
commit b1c0d4b2e8
7 changed files with 190 additions and 35 deletions

View File

@@ -1667,6 +1667,8 @@ class ThermionViewerFFI extends ThermionViewer {
throw Exception("Failed to create geometry");
}
print(" is shadow caster : ${RenderableManager_isShadowCaster(_renderableManager!, SceneAsset_getEntity(assetPtr))} is shadow recevier : ${RenderableManager_isShadowReceiver(_renderableManager!, SceneAsset_getEntity(assetPtr))} " );
var asset = FFIAsset(
assetPtr, _sceneManager!, _engine!, _unlitMaterialProvider!, this);

View File

@@ -439,7 +439,7 @@ abstract class ThermionViewer {
Future<ThermionEntity> getMainCameraEntity();
///
/// Returns the Camera instance for the main camera.
/// Returns the Camera instance for the main camera.
///
Future<Camera> getMainCamera();
@@ -460,7 +460,7 @@ abstract class ThermionViewer {
Future setToneMapping(ToneMapper mapper);
///
/// Sets the strength of the bloom.
/// Sets the strength of the bloom (requires postprocessing).
///
Future setBloom(double bloom);
@@ -597,7 +597,7 @@ abstract class ThermionViewer {
double viewportX, double viewportY, double x, double y, double z);
///
/// Enable/disable postprocessing effects (anti-aliasing, tone mapping). Disabled by default.
/// Enable/disable postprocessing effects (anti-aliasing, tone mapping, bloom). Disabled by default.
///
Future setPostProcessing(bool enabled);