GPUOpen-Effects/TressFX

typo in computing shadow accumulation

adiblev opened this issue · 0 comments

Hi guys,

Going over the code we assume that intention was to compute: #fibers = distance / (strand radius + spacing between strands) but due to a typo used multiplication instead of addition.

Was that indeed a typo or intentional?

float numFibers = fDepthDistanceWS / (fFiberSpacing * fFiberRadius); // fiberSpacing + fiberRadius is total distance from 1 fiber to another