From c99c57e24d76428f5d091396a97f0f5e2e5861ca Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Fri, 13 Sep 2024 14:52:20 +0800 Subject: [PATCH] geometry receives/casts shadows by default --- thermion_dart/native/src/SceneManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/thermion_dart/native/src/SceneManager.cpp b/thermion_dart/native/src/SceneManager.cpp index f833b732..1351eb8a 100644 --- a/thermion_dart/native/src/SceneManager.cpp +++ b/thermion_dart/native/src/SceneManager.cpp @@ -2390,8 +2390,8 @@ void SceneManager::queueRelativePositionUpdateWorldAxis(EntityId entity, float v builder.boundingBox(geometry->getBoundingBox()) .geometry(0, primitiveType, geometry->vertexBuffer(), geometry->indexBuffer(), 0, numIndices) .culling(true) - .receiveShadows(false) - .castShadows(false); + .receiveShadows(true) + .castShadows(true); if (materialPath) { filament::Material* mat = nullptr; @@ -2460,7 +2460,6 @@ void SceneManager::queueRelativePositionUpdateWorldAxis(EntityId entity, float v ) { return createGeometryWithNormals(vertices, numVertices, nullptr, 0, indices, numIndices, primitiveType, materialPath, keepData); } - } // namespace thermion_filament