mirror of https://github.com/bjornbytes/lovr.git
This is an experimental take on the "default filter" system. Each render Pass has its own "global sampler", initialized to trilinear. The global sampler will be used by default to sample textures/materials in shaders. You can set it to a filter mode or a full Sampler object. You can always send your own Sampler objects to Shaders if you want per-texture sampler settings. The global sampler is designed to be set a small number of times per pass instead of on every draw. Basically, just do Pass:setSampler('nearest') and draw your minecraft world. |
||
---|---|---|
.. | ||
api | ||
core | ||
lib | ||
modules | ||
main.c | ||
util.c | ||
util.h |