Adjust directional shadow scene cube to sit on ground

This commit is contained in:
2026-04-05 12:55:19 +08:00
parent a35adf14d3
commit 56f596548d
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -971,7 +971,7 @@ void DirectionalShadowSceneTest::BuildScene() {
groundMeshRenderer->SetReceiveShadows(true);
GameObject* casterObject = mScene->CreateGameObject("CasterCube");
casterObject->GetTransform()->SetLocalPosition(Vector3(-1.2f, 2.2f, 8.8f));
casterObject->GetTransform()->SetLocalPosition(Vector3(-1.2f, 1.71f, 8.8f));
casterObject->GetTransform()->SetLocalScale(Vector3(1.8f, 3.6f, 1.8f));
auto* casterMeshFilter = casterObject->AddComponent<MeshFilterComponent>();
auto* casterMeshRenderer = casterObject->AddComponent<MeshRendererComponent>();