Skip to content

Commit

Permalink
shadows-sapp.c: fix shadow sampler filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jun 26, 2023
1 parent ae71f4c commit d164006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sapp/shadows-sapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ void init(void) {

// a sampler object to sample the shadow texture
sg_sampler smp = sg_make_sampler(&(sg_sampler_desc){
.min_filter = SG_FILTER_LINEAR,
.mag_filter = SG_FILTER_LINEAR,
.min_filter = SG_FILTER_NEAREST,
.mag_filter = SG_FILTER_NEAREST,
});

// resource bindings to render the cube, using the shadow map render target as texture
Expand Down

0 comments on commit d164006

Please sign in to comment.