Skip to content

Commit

Permalink
[2.5D Map] Fixed
Browse files Browse the repository at this point in the history
[LWJGL Application] ERROR GLShaderMT - Could not compile shader 35633:
[LWJGL Application] ERROR GLShaderMT - WARNING: 0:2: '' :  #version directive missing
WARNING: 0:56: 'assign' : implicit type conversion allowed from GLSL 1.20
ERROR: 0:55: '=' :  cannot convert from '4-component vector of highp float' to '3-component vector of highp float'
  • Loading branch information
wolfgang-ch committed Jul 15, 2022
1 parent 0b77075 commit 77d32cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bundles/net.tourbook/shaders/line_aa.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ void main() {
vec3 vertexColorWithBrightness = outlineBrightness01 > 0

// > 0 -> brighter
? vertexColor01 + outlineBrightness01
? vertexColor01.rgb + outlineBrightness01

// < 0 -> darker
: vertexColor01 * uOutlineBrightness;
: vertexColor01.rgb * uOutlineBrightness;

vFragmentColor = vec4(vertexColorWithBrightness, vertexColor01.a * uVertexColorAlpha);
}
Expand Down
4 changes: 2 additions & 2 deletions bundles/net.tourbook/shaders/line_aa_proj.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ void main() {
vec3 vertexColorWithBrightness = outlineBrightness01 > 0

// > 0 -> brighter
? vertexColor01 + outlineBrightness01
? vertexColor01.rgb + outlineBrightness01

// < 0 -> darker
: vertexColor01 * uOutlineBrightness;
: vertexColor01.rgb * uOutlineBrightness;

vFragmentColor = vec4(vertexColorWithBrightness, vertexColor01.a * uVertexColorAlpha);
}
Expand Down

0 comments on commit 77d32cf

Please sign in to comment.