Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

filter_weights

The reconstruction filters an image resample weighs source pixels with: bilinear (triangle), lanczos3 and Catmull-Rom, each as zf_weight(filter, x) over a distance in output-pixel units with its reach from zf_support. A filter is named by the constants ZF_BILINEAR (0), ZF_LANCZOS3 (1), ZF_CATMULL_ROM (2) and ZF_NEAREST (3); zf_weight weighs ZF_NEAREST as bilinear and zf_support gives it a reach of 1, so the includer picks the nearest pixel itself. The resample kernel includes it.

#include "@builtin::systems.procgen.kernels.filter_weights"