cheditor5 특정 이미지 업로드시 검게 출력되는 문제 수정

This commit is contained in:
thisgun
2021-01-25 12:26:28 +09:00
parent ddde0d7641
commit 682f6620cb
14 changed files with 2468 additions and 213 deletions

View File

@ -0,0 +1,10 @@
// -------------------------------------------------------
// CHEditor WebGL Vertex Shader
// -------------------------------------------------------
attribute vec2 a_position;
uniform vec2 u_resolution;
void main() {
vec2 clipSpace = (a_position / u_resolution * 2.0) - 1.0;
gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);
}