Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Update missing reference tests (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz-invideo authored Mar 28, 2022
1 parent 938c660 commit 9b9a0fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
11 changes: 4 additions & 7 deletions korge/src/jvmTest/resources/korge/render/Default.frag.log
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,21 @@ varying lowp float v_TexIndex;
varying mediump vec2 v_Tex;
varying vec4 v_Col;
varying vec4 v_Col2;
vec4 stexture2D(sampler2D sampler, vec2 coord) {
return texture2D(sampler, fract(coord));
}
void main() {
if ((v_TexIndex <= 1.0)) {
if ((v_TexIndex == 0.0)) {
gl_FragColor = stexture2D(u_Tex0, v_Tex.xy);
gl_FragColor = texture2D(u_Tex0, fract(v_Tex.xy));
}
else {
gl_FragColor = stexture2D(u_Tex1, v_Tex.xy);
gl_FragColor = texture2D(u_Tex1, fract(v_Tex.xy));
}
}
else {
if ((v_TexIndex == 2.0)) {
gl_FragColor = stexture2D(u_Tex2, v_Tex.xy);
gl_FragColor = texture2D(u_Tex2, fract(v_Tex.xy));
}
else {
gl_FragColor = stexture2D(u_Tex3, v_Tex.xy);
gl_FragColor = texture2D(u_Tex3, fract(v_Tex.xy));
}
}
gl_FragColor.rgb = (gl_FragColor.rgb / gl_FragColor.a);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,21 @@ varying lowp float v_TexIndex;
varying mediump vec2 v_Tex;
varying vec4 v_Col;
varying vec4 v_Col2;
vec4 stexture2D(samplerExternalOES sampler, vec2 coord) {
return texture2D(sampler, fract(coord));
}
void main() {
if ((v_TexIndex <= 1.0)) {
if ((v_TexIndex == 0.0)) {
gl_FragColor = stexture2D(u_Tex0, v_Tex.xy);
gl_FragColor = texture2D(u_Tex0, fract(v_Tex.xy));
}
else {
gl_FragColor = stexture2D(u_Tex1, v_Tex.xy);
gl_FragColor = texture2D(u_Tex1, fract(v_Tex.xy));
}
}
else {
if ((v_TexIndex == 2.0)) {
gl_FragColor = stexture2D(u_Tex2, v_Tex.xy);
gl_FragColor = texture2D(u_Tex2, fract(v_Tex.xy));
}
else {
gl_FragColor = stexture2D(u_Tex3, v_Tex.xy);
gl_FragColor = texture2D(u_Tex3, fract(v_Tex.xy));
}
}
gl_FragColor.rgb = (gl_FragColor.rgb / gl_FragColor.a);
Expand Down

0 comments on commit 9b9a0fa

Please sign in to comment.