Skip to content

Commit 586e1de

Browse files
committed
Minor fixes
1 parent 94aa3af commit 586e1de

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

App/Scene/scene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ Scene* Scene::LoadFromObj(std::string const& filename, std::string const& basepa
919919
matmap[i] = scene->materials_.size() - 1;
920920
continue;
921921
}
922-
else if (objmaterials[i].name == "light1" || objmaterials[i].name == "Emit1" || objmaterials[i].name == "Light3" || objmaterials[i].name == "dayLight_portal")
922+
else if (objmaterials[i].name == "light" || objmaterials[i].name == "Emit1" || objmaterials[i].name == "Light3" || objmaterials[i].name == "dayLight_portal")
923923
{
924924
Material emissive;
925925
emissive.kx = 10.f * float3(0.8f, 0.8f, 0.8f);

App/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ int g_num_ao_rays = 1;
9494
int g_ao_enabled = false;
9595
int g_progressive = false;
9696
int g_num_bounces = 5;
97-
int g_num_samples = 256;
97+
int g_num_samples = -1;
9898
int g_samplecount = 0;
99-
float g_ao_radius = 1.f;
99+
float g_ao_radius = 1.f;
100100
float g_envmapmul = 1.f;
101101
float g_cspeed = 100.25f;
102102

@@ -363,9 +363,9 @@ void InitData()
363363
std::cout << "F-Stop: " << 1.f / (g_scene->camera_->GetAperture() * 10.f) << "\n";
364364
std::cout << "Sensor size: " << g_camera_sensor_size.x * 1000.f << "x" << g_camera_sensor_size.y * 1000.f << "mm\n";
365365

366-
//g_scene->SetEnvironment(g_envmapname, "", g_envmapmul);
367-
//g_scene->AddDirectionalLight(RadeonRays::float3(-0.3f, -1.f, -0.4f), 2.f * RadeonRays::float3(1.f, 1.f, 1.f));
368-
//g_scene->AddPointLight(RadeonRays::float3(0.5f, 1.5f, 0.0f), RadeonRays::float3(1.f, 0.9f, 0.6f));
366+
g_scene->SetEnvironment(g_envmapname, "", g_envmapmul);
367+
g_scene->AddDirectionalLight(RadeonRays::float3(-0.3f, -1.f, -0.4f), 2.f * RadeonRays::float3(1.f, 1.f, 1.f));
368+
g_scene->AddPointLight(RadeonRays::float3(-0.5f, 1.7f, 0.0f), RadeonRays::float3(1.f, 0.9f, 0.6f));
369369
g_scene->AddSpotLight(RadeonRays::float3(0.5f, 1.5f, 0.0f), RadeonRays::float3(-0.5f, -1.0f, 0.1f), RadeonRays::float3(1.f, 0.9f, 0.6f),
370370
std::cos(M_PI_4/2), std::cos(M_PI_4));
371371
#pragma omp parallel for

0 commit comments

Comments
 (0)