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

Update missing reference tests #544

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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