mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-25 21:31:32 +00:00
Disable light bounces for now, after some internal discussion pertaining to future improvements
This commit is contained in:
parent
27a8ef3855
commit
5bb277ff31
3 changed files with 10 additions and 6 deletions
|
@ -88,7 +88,7 @@ void FLevel::SetupLights()
|
|||
defaultSunColor = vec3(1, 1, 1);
|
||||
defaultSunDirection = vec3(0.45f, 0.3f, 0.9f);
|
||||
Samples = 8;
|
||||
LightBounce = 1;
|
||||
LightBounce = 0;
|
||||
GridSize = 32.0f;
|
||||
|
||||
for (int i = 0; i < (int)Things.Size(); ++i)
|
||||
|
@ -132,10 +132,12 @@ void FLevel::SetupLights()
|
|||
if (Samples > 128) Samples = 128;
|
||||
Samples = Math::RoundPowerOfTwo(Samples);
|
||||
|
||||
// number of light bounces
|
||||
/*
|
||||
// number of light bounces (temporarily disabled)
|
||||
LightBounce = thing->args[2];
|
||||
if (LightBounce < 0) LightBounce = 0;
|
||||
if (LightBounce > 8) LightBounce = 8;
|
||||
*/
|
||||
|
||||
// auto probe grid size
|
||||
GridSize = thing->args[3] ? thing->args[3] : 64.0f;
|
||||
|
|
|
@ -60,11 +60,12 @@ void CPURaytracer::Raytrace(LevelMesh* level)
|
|||
CreateHemisphereVectors();
|
||||
CreateLights();
|
||||
|
||||
printf("Ray tracing with %d bounce(s)\n", mesh->map->LightBounce);
|
||||
//printf("Ray tracing with %d bounce(s)\n", mesh->map->LightBounce);
|
||||
printf("Ray tracing in progress...\n");
|
||||
|
||||
RunJob((int)tasks.size(), [=](int id) { RaytraceTask(tasks[id]); });
|
||||
|
||||
printf("\nRaytrace complete\n");
|
||||
printf("\nRay tracing complete\n");
|
||||
}
|
||||
|
||||
void CPURaytracer::RaytraceTask(const CPUTraceTask& task)
|
||||
|
|
|
@ -90,7 +90,8 @@ void GPURaytracer::Raytrace(LevelMesh* level)
|
|||
HemisphereVectors.push_back(H);
|
||||
}
|
||||
|
||||
printf("Ray tracing with %d bounce(s)\n", mesh->map->LightBounce);
|
||||
//printf("Ray tracing with %d bounce(s)\n", mesh->map->LightBounce);
|
||||
printf("Ray tracing in progress...\n");
|
||||
|
||||
RunWithProgressDots([&]() {
|
||||
size_t maxTasks = (size_t)rayTraceImageSize * rayTraceImageSize;
|
||||
|
@ -149,7 +150,7 @@ void GPURaytracer::Raytrace(LevelMesh* level)
|
|||
if (device->renderdoc)
|
||||
device->renderdoc->EndFrameCapture(0, 0);
|
||||
|
||||
printf("Raytrace complete\n");
|
||||
printf("Ray trace complete\n");
|
||||
}
|
||||
|
||||
void GPURaytracer::CreateVulkanObjects()
|
||||
|
|
Loading…
Reference in a new issue