moved essential resources out of the assets directory and into the jar

This commit is contained in:
minjaesong
2022-01-28 10:30:08 +09:00
parent e3b82ae5b6
commit 956c9d44e1
61 changed files with 72 additions and 142 deletions

17
src/shaders/diff.frag Normal file
View File

@@ -0,0 +1,17 @@
#version 120
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_EXT_gpu_shader4 : enable
varying vec4 v_color;
varying vec2 v_texCoords;
uniform sampler2D u_texture;
void main(void) {
vec4 inColor = texture2D(u_texture, v_texCoords);
ivec4 bytes = ivec4(255.0 * inColor);
ivec4 mask = ivec4(0x55);
gl_FragColor = (bytes ^ mask) / 255.0;
}