Skip to content

Commit

Permalink
Fixed a problem with BAKECPU and light maps stransparency
Browse files Browse the repository at this point in the history
  • Loading branch information
Dade916 committed Feb 4, 2020
1 parent de01de9 commit e0bd6ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/slg/engines/bakecpu/bakecputhread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ void BakeCPURenderThread::RenderEyeSample(const BakeMapInfo &mapInfo, PathTracer
const Vector localSampledDir = UniformSampleHemisphere(u1, u2);
const Vector sampledDir = bsdf.GetFrame().ToWorld(localSampledDir);

pathInfo.lastBSDFPdfW = UniformHemispherePdf(u1, u2);
pathInfo.lastBSDFEvent = DIFFUSE | REFLECT;
pathInfo.AddVertex(bsdf, DIFFUSE | REFLECT, UniformHemispherePdf(u1, u2), pathTracer.hybridBackForwardGlossinessThreshold);

// Ray origin
const Point rayOrig = bsdf.GetRayOrigin(sampledDir);
Expand Down

0 comments on commit e0bd6ff

Please sign in to comment.