sprite2d: use nearest texture filter + fix texture coloring
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6a81c7a579
commit
c004ea1b06
2 changed files with 3 additions and 3 deletions
|
|
@ -70,8 +70,8 @@ pub fn machSprite2DInit(adapter: anytype) !void {
|
|||
// Create a sampler with linear filtering for smooth interpolation.
|
||||
const queue = device.getQueue();
|
||||
const texture_sampler = device.createSampler(&.{
|
||||
.mag_filter = .linear,
|
||||
.min_filter = .linear,
|
||||
.mag_filter = .nearest,
|
||||
.min_filter = .nearest,
|
||||
});
|
||||
|
||||
const sprite_buffer_cap = 1024 * 128; // TODO: allow user to specify preallocation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue