Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ __device__ inline void processHitBwd(
float3 radianceGrad,
float integratedDepth,
float& depth,
float depthGrad) {
float integratedDepthGrad) {
float3 particlePosition;
float3 gscl;
float33 particleRotation;
Expand Down Expand Up @@ -550,11 +550,11 @@ __device__ inline void processHitBwd(
// ===> d_hitT / d_galpha = gdist * prevTrm - residualHitT * prevTrm
// = (gdist - residualHitT) * prevTrm
//
const float galphaRayHitGrd = (gdist - residualHitT) * transmittance * depthGrad;
const float galphaRayHitGrd = (gdist - residualHitT) * transmittance * integratedDepthGrad;
//
// ===> d_hitT / d_gsqdist = weight / (2*gdist)
// ===> d_gsqdist / d_grds = 2 * grds
const float3 grdsRayHitGrd = gsqdist > 0.0f ? ((2 * grds * weight) / (2 * gdist)) * depthGrad : make_float3(0.0f);
const float3 grdsRayHitGrd = gsqdist > 0.0f ? ((2 * grds * weight) / (2 * gdist)) * integratedDepthGrad : make_float3(0.0f);

// ---> grds = gscl * grd * dot(grd, -1 * gro)
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ struct ShRadiativeGaussianVolumetricFeaturesParticles : Params, public ExtParams
reinterpret_cast<const float3&>(featuresBackward),
reinterpret_cast<float3&>(features),
reinterpret_cast<const float3&>(featuresGradient),
hitT,
hitTBackward,
hitT,
hitTGradient);
}

Expand Down