You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VolumeSampler: expose padding_mode for inside out rendering (#1638)
Summary:
This exposes a setting on VolumeSampler so you can change the padding_mode. This is very useful when using cameras inside a volume that doesn't cover the entire world. By setting the value to `border` you can get much better behavior than `zeros` which causes edge effects for things like the sky. Border emulates infinitely tall buildings instead.
Pull Request resolved: #1638
Test Plan:
Tested with torchdrive
Example before:

Example after:

Reviewed By: MichaelRamamonjisoa
Differential Revision: D49384383
Pulled By: bottler
fbshipit-source-id: 202b526e07320a18944c39a148beec94c0f5d68c
0 commit comments