Skip to content

Commit 8233d18

Browse files
committed
Merge branch 'develop' fix to v2.34
2 parents f82dbc1 + 061aba7 commit 8233d18

20 files changed

+21
-91
lines changed

pi3d/shaders/2d_flat.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
varying vec2 pix_inv;
44

5-
//fragcolor
6-
75
void main(void) {
86
vec2 coord = vec2(gl_FragCoord);
97
//coord.y += 0.5;
@@ -17,6 +15,4 @@ void main(void) {
1715
if (texc.a < unib[0][2]) discard; // ------ to allow rendering behind the transparent parts of this object
1816
gl_FragColor = texc;
1917
gl_FragColor.a *= unif[5][2];
20-
}
21-
22-
18+
}

pi3d/shaders/clashtest.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ void main(void) {
1212
vec4 texc = texture2D(tex0, texcoordout); // ------ material or basic colour from texture
1313
if (dist > 2.5 || texc.a < 0.6) discard; // ------ only render near, non-transparent parts of objects
1414
gl_FragColor = texc;
15-
}
15+
}

pi3d/shaders/conway.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ void main(void) {
2828
else if (ntot != 2.0) texc = vec4(smoothstep(0.0, 5.0, ntot), 1.0, 0.0, 0.0);
2929
gl_FragColor = texc;
3030
gl_FragColor.a = 1.0;
31-
}
31+
}

pi3d/shaders/defocus.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include std_head_fs.inc
22

3-
//fragcolor
4-
53
void main(void) {
64
vec4 texc = vec4(0.0, 0.0, 0.0, 1.0); // we don't save the alpha value of the rendering so set this here to 1.0
75
vec2 fcoord = vec2(0.0, 0.0);
@@ -16,6 +14,4 @@ void main(void) {
1614
}
1715
gl_FragColor = texc * 0.04;
1816
gl_FragColor.a = unif[5][2];
19-
}
20-
21-
17+
}

pi3d/shaders/mat_bump.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ varying vec2 bumpcoordout;
44
varying vec3 lightVector;
55
varying float lightFactor;
66

7-
//fragcolor
8-
97
void main(void) {
108
#include std_main_mat.inc
119
vec3 bump = normalize(texture2D(tex0, bumpcoordout).rgb * 2.0 - 1.0);
1210
#include std_bump.inc
1311

1412
gl_FragColor = mix(texc, vec4(unif[4], unif[5][1]), ffact); // ------ combine using factors
1513
gl_FragColor.a *= unif[5][2];
16-
}
17-
18-
14+
}

pi3d/shaders/mat_flat.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
#include std_head_fs.inc
22

3-
//fragcolor
4-
53
void main(void) {
64
#include std_main_mat.inc
75
//if (distance(gl_PointCoord, vec2(0.5)) > 0.5) discard; //circular points
86
gl_FragColor = mix(texc, vec4(unif[4], unif[5][1]), ffact); // ------ combine using factors
97
gl_FragColor.a *= unif[5][2];
10-
}
11-
12-
8+
}

pi3d/shaders/mat_light.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@
33
varying vec3 lightVector;
44
varying float lightFactor;
55

6-
//fragcolor
7-
86
void main(void) {
97
#include std_main_mat.inc
108
#include std_light.inc
119

1210
gl_FragColor = mix(texc, vec4(unif[4], unif[5][1]), ffact); // ------ combine using factors
1311
gl_FragColor.a *= unif[5][2];
14-
}
15-
16-
12+
}

pi3d/shaders/mat_pointsprite.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ void main(void) {
1414
if (alpha < unib[0][2]) discard; // ------ to allow rendering behind the transparent parts of this object
1515
gl_FragColor = colour;
1616
gl_FragColor.a *= alpha;
17-
}
17+
}

pi3d/shaders/mat_reflect.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ varying vec3 normout;
66
varying vec3 lightVector;
77
varying float lightFactor;
88

9-
//fragcolor
10-
119
void main(void) {
1210
#include std_main_mat.inc
1311
vec3 bump = normalize(texture2D(tex0, bumpcoordout).rgb * 2.0 - 1.0);
@@ -19,6 +17,4 @@ void main(void) {
1917

2018
gl_FragColor = mix(mix(texc, shinec, shinefact), vec4(unif[4], unif[5][1]), ffact); // ------ combine using factors
2119
gl_FragColor.a *= unif[5][2];
22-
}
23-
24-
20+
}

pi3d/shaders/post_base.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
varying vec2 texcoordout;
44

5-
//fragcolor
6-
75
void main(void) {
86
///////////////////////////////////////////////////////////////////
97
// you can do processing on the texture (or utilise other textures)
@@ -36,6 +34,4 @@ void main(void) {
3634
}
3735

3836
gl_FragColor = texc;
39-
}
40-
41-
37+
}

0 commit comments

Comments
 (0)