Skip to content

Commit cd944a4

Browse files
committed
remove renderer check from interpolated texture weighting
1 parent b24233c commit cd944a4

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/shaders/displacement_buffer.glsl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ void fragment() {
328328
vec2(weights_id_0[3], weights_id_1[3]));
329329
// interpolated weights
330330

331-
#if CURRENT_RENDERER == RENDERER_FORWARD_PLUS
332331
t_weights = {vec2(0), vec2(0), vec2(0), vec2(0)};
333332
weights_id_0 *= weights;
334333
weights_id_1 *= weights;
@@ -343,7 +342,6 @@ void fragment() {
343342
t_weights[3] += fma(w_0, vec2(equal(texture_ids[3], id_0)), w_1 * vec2(equal(texture_ids[3], id_1)));
344343
}
345344

346-
#endif
347345

348346
// Struct to accumulate all texture data.
349347
material mat = material(0., 0.);

src/shaders/main.glsl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ void fragment() {
528528
vec2(weights_id_0[2], weights_id_1[2]),
529529
vec2(weights_id_0[3], weights_id_1[3]));
530530
// interpolated weights
531-
#if CURRENT_RENDERER == RENDERER_FORWARD_PLUS
532531
if (bilerp) {
533532
t_weights = {vec2(0), vec2(0), vec2(0), vec2(0)};
534533
weights_id_0 *= weights;
@@ -544,7 +543,6 @@ void fragment() {
544543
t_weights[3] += fma(w_0, vec2(equal(texture_ids[3], id_0)), w_1 * vec2(equal(texture_ids[3], id_1)));
545544
}
546545
}
547-
#endif
548546

549547
// Struct to accumulate all texture data.
550548
material mat = material(vec4(0.0), vec4(0.0), 0., 0., 0., 0.);

0 commit comments

Comments
 (0)