feat: basic shadow map + renderdoc labels
This commit is contained in:
@@ -457,6 +457,7 @@ namespace {
|
||||
light->SetIntensity(4.0f);
|
||||
light->SetRange(7.5f);
|
||||
light->SetConeAngles(0.2f, 0.4f);
|
||||
light->SetCastShadows(true);
|
||||
|
||||
const auto data = light->Serialize();
|
||||
|
||||
@@ -472,6 +473,8 @@ namespace {
|
||||
"LightComponent must round-trip intensity and range");
|
||||
check(loaded->GetInnerConeAngle() == 0.2f && loaded->GetOuterConeAngle() == 0.4f,
|
||||
"LightComponent must round-trip its cone angles");
|
||||
check(loaded->GetCastShadows(),
|
||||
"LightComponent must round-trip its cast shadows flag");
|
||||
|
||||
loaded->SetConeAngles(0.5f, 0.1f);
|
||||
check(loaded->GetOuterConeAngle() >= loaded->GetInnerConeAngle(),
|
||||
|
||||
Reference in New Issue
Block a user