Skip to content

Commit 4b5fd8f

Browse files
authored
Merge pull request #1 from jmecn/master
[M]Add GLSL150 to every .j3md. Add GLSLCompat to every .frag and .ver…
2 parents 30c4415 + 8a3df71 commit 4b5fd8f

14 files changed

+28
-12
lines changed

src/Common/MatDefs/TTF/Blur/HGaussianBlur.frag

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#import "Common/ShaderLib/GLSLCompat.glsllib"
2+
13
#ifdef GL_ES
24
precision mediump float;
35
#endif

src/Common/MatDefs/TTF/Blur/HGaussianBlur.j3md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ MaterialDef HGaussianBlur {
77
}
88

99
Technique {
10-
VertexShader GLSL100: Common/MatDefs/Post/Post.vert
11-
FragmentShader GLSL100: Common/MatDefs/TTF/Blur/HGaussianBlur.frag
10+
VertexShader GLSL100 GLSL150: Common/MatDefs/Post/Post.vert
11+
FragmentShader GLSL100 GLSL150: Common/MatDefs/TTF/Blur/HGaussianBlur.frag
1212

1313
WorldParameters {
1414
WorldViewProjectionMatrix

src/Common/MatDefs/TTF/Blur/VGaussianBlur.frag

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#import "Common/ShaderLib/GLSLCompat.glsllib"
2+
13
#ifdef GL_ES
24
precision mediump float;
35
#endif

src/Common/MatDefs/TTF/Blur/VGaussianBlur.j3md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ MaterialDef VGaussianBlur {
77
}
88

99
Technique {
10-
VertexShader GLSL100: Common/MatDefs/Post/Post.vert
11-
FragmentShader GLSL100: Common/MatDefs/TTF/Blur/VGaussianBlur.frag
10+
VertexShader GLSL100 GLSL150: Common/MatDefs/Post/Post.vert
11+
FragmentShader GLSL100 GLSL150: Common/MatDefs/TTF/Blur/VGaussianBlur.frag
1212

1313
WorldParameters {
1414
WorldViewProjectionMatrix

src/Common/MatDefs/TTF/Blur/blurFinal.frag

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#import "Common/ShaderLib/GLSLCompat.glsllib"
2+
13
#ifdef GL_ES
24
precision mediump float;
35
#endif

src/Common/MatDefs/TTF/Blur/blurFinal.j3md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ MaterialDef blurFinal {
66
}
77

88
Technique {
9-
VertexShader GLSL100: Common/MatDefs/Post/Post.vert
10-
FragmentShader GLSL100: Common/MatDefs/TTF/Blur/blurFinal.frag
9+
VertexShader GLSL100 GLSL150: Common/MatDefs/Post/Post.vert
10+
FragmentShader GLSL100 GLSL150: Common/MatDefs/TTF/Blur/blurFinal.frag
1111

1212
WorldParameters {
1313
WorldViewProjectionMatrix

src/Common/MatDefs/TTF/TTF.j3md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ MaterialDef Simple {
44
Boolean useAA : True
55
}
66
Technique {
7-
VertexShader GLSL100: Common/MatDefs/TTF/TTF_Vert.vert
8-
FragmentShader GLSL100: Common/MatDefs/TTF/TTF_Frag.frag
7+
VertexShader GLSL100 GLSL150: Common/MatDefs/TTF/TTF_Vert.vert
8+
FragmentShader GLSL100 GLSL150: Common/MatDefs/TTF/TTF_Frag.frag
99

1010
WorldParameters {
1111
WorldViewProjectionMatrix

src/Common/MatDefs/TTF/TTF_Bitmap.frag

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#import "Common/ShaderLib/GLSLCompat.glsllib"
2+
13
#ifdef GL_ES
24
precision mediump float;
35
#endif

src/Common/MatDefs/TTF/TTF_Bitmap.j3md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ MaterialDef TrueTypeFont {
44
Color Color (Color)
55
}
66
Technique {
7-
VertexShader GLSL100: Common/MatDefs/TTF/TTF_Bitmap.vert
8-
FragmentShader GLSL100: Common/MatDefs/TTF/TTF_Bitmap.frag
7+
VertexShader GLSL100 GLSL150: Common/MatDefs/TTF/TTF_Bitmap.vert
8+
FragmentShader GLSL100 GLSL150: Common/MatDefs/TTF/TTF_Bitmap.frag
99

1010
WorldParameters {
1111
WorldViewProjectionMatrix

src/Common/MatDefs/TTF/TTF_Bitmap.vert

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#import "Common/ShaderLib/GLSLCompat.glsllib"
2+
13
uniform mat4 g_WorldViewProjectionMatrix;
24
attribute vec3 inPosition;
35
attribute vec2 inTexCoord;

0 commit comments

Comments
 (0)