Skip to content

Commit

Permalink
Fix sampler double-declaration in raster_particle.fragment.glsl
Browse files Browse the repository at this point in the history
* Remove unused include from raster_particle.fragment.glsl
  • Loading branch information
Nelarius authored and mourner committed Apr 10, 2024
1 parent fd85802 commit 1db9002
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/shaders/raster_particle.fragment.glsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "_prelude_fog.fragment.glsl"
#include "_prelude_lighting.glsl"
#include "_prelude_raster_array.glsl"

uniform float u_fade_t;
uniform float u_opacity;
Expand All @@ -9,8 +8,6 @@ uniform highp float u_raster_elevation;
in vec2 v_pos0;
in vec2 v_pos1;

// Since samplers cannot be used as function parameters, they must be hard-coded. These
// are therefore instead moved to the raster_array prelude when raster arrays are active.
uniform sampler2D u_image0;
uniform sampler2D u_image1;

Expand Down

0 comments on commit 1db9002

Please sign in to comment.