Open niklassanden opened 1 month ago
When computing the linearZ slope in GBufferRT, a typo made ddxPosW be used twice, causing it to only consider the y-derivative. ddxPosW corresponded to the y-derivative because computeDdxPosW and computeDdyPosW used the wrong camera basis vectors.
ddxPosW
computeDdxPosW
computeDdyPosW
Before and after:
When computing the linearZ slope in GBufferRT, a typo made
ddxPosW
be used twice, causing it to only consider the y-derivative.ddxPosW
corresponded to the y-derivative becausecomputeDdxPosW
andcomputeDdyPosW
used the wrong camera basis vectors.Before and after:![zSlope](https://github.com/NVIDIAGameWorks/Falcor/assets/37499899/365c4c44-630c-4afb-ae98-a5968f346d37)