Skip to content

Commit f0d6aeb

Browse files
committed
update scene
1 parent 65b300c commit f0d6aeb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

bxdf/lambertianBxdf.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ Color LambertianBxdf::sample_f(const Vector3 &wo, Vector3 &wi, float &pdf, const
2929

3030
pdf = wi.z * MathConstant::INV_PI; // cos(theta) / PI
3131

32-
// 避免 pdf 出现问题
3332
if (pdf < MathConstant::FLOAT_SMALL_NUMBER)
3433
{
35-
pdf = 0.0f; // 或返回 Color::COLOR_BLACK
34+
pdf = 0.0f;
3635
return Color::COLOR_BLACK;
3736
}
3837

scene_builder/cubeSceneBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void CubeSceneBuilder::build()
2525
true);
2626

2727
buildModel(Vector3(0, 0, 150),
28-
28,
28+
25,
2929
ResourceDef::SLAB,
3030
MATERIAL_TYPE::M_MICRO_FACET_TRANSMISSION,
3131
false,

0 commit comments

Comments
 (0)