Skip to content
Snippets Groups Projects
Verified Commit c82ca6da authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri :speech_balloon:
Browse files

Update shadow map tests to account for fixed light transforms

parent 17a472d2
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,6 @@ int TestShadowMapBakerPass(int argc, char* argv[])
delete[] fileName;
mapper->SetInputConnection(reader->GetOutputPort());
// mapper->SetInputConnection(norms->GetOutputPort());
actor->SetMapper(mapper);
actor->GetProperty()->SetAmbientColor(0.2, 0.2, 1.0);
actor->GetProperty()->SetDiffuseColor(1.0, 0.65, 0.7);
......
......@@ -41,20 +41,29 @@ int TestShadowMapPass(int argc, char* argv[])
vtkNew<vtkRenderWindowInteractor> iren;
iren->SetRenderWindow(renderWindow);
// Add a couple of additional lights
vtkNew<vtkLight> light1;
light1->SetFocalPoint(0, 0, 0);
light1->SetFocalPoint(1, 0, 1);
light1->SetPosition(0, 1, 0.2);
light1->SetColor(0.95, 0.97, 1.0);
light1->SetIntensity(0.8);
renderer->AddLight(light1);
vtkNew<vtkLight> light2;
light2->SetFocalPoint(0, 0, 0);
light2->SetPosition(1.0, 1.0, 1.0);
light2->SetFocalPoint(0, 0, 1);
light2->SetPosition(0.2, 0.5, 0.5);
light2->SetColor(1.0, 0.8, 0.7);
light2->SetIntensity(0.3);
light2->SetIntensity(0.5);
renderer->AddLight(light2);
vtkNew<vtkLight> light3;
light3->SetFocalPoint(-0.1, -0.5, -0.5);
light3->SetPosition(0.2, 0.5, 0.5);
light3->SetColor(1.0, 0.8, 0.7);
light3->SetPositional(true);
light3->SetIntensity(0.3);
renderer->AddLight(light3);
const char* fileName = vtkTestUtilities::ExpandDataFileName(argc, argv, "Data/dragon.ply");
vtkNew<vtkPLYReader> reader;
reader->SetFileName(fileName);
......
8e1cdfe8edc9fbe88c027fca7521e8f6c2dadb16d9b3c99baef2b093bfb42fc3aa56e251f3d5b02ee66a67f5c86cf4e92a9b0901cfb4cbd9e58f04b7f5e1a333
a33be4c89e9eb6a282ac4ed7b14d3cd9fa8b90f3e493937c1c022faddfa678a5efb466b48f0951a1f880325f0234cfbd99c0c1c64d4a410eb4e64c8888a9f29c
e9402f528869f5f3e6367b479e062aa1cfa63a781697f45fc89efd23cf6feb8a5e12a0b7ff1ebcd1b751515eca38945c710afc30ba225b847b3d7f851d270f06
9412ed54080c7a972d786a269538a3dbd56a5aa070f2b35ba448dfd3cca211e7e4b4d196e07c8ff2d56ff4bb7b0855e5584758c09457d3d6f3c760ee47a4dded
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment