Go で書き直した Ikemen
Revision | 2ef7d0616b9af8cd20de3b58d34418903ae913d5 (tree) |
---|---|
Zeit | 2019-01-08 14:08:20 |
Autor | suehiro <supersuehiro@user...> |
Commiter | suehiro |
透明カラーがずれないように修正
@@ -29,7 +29,7 @@ func RenderInit() { | ||
29 | 29 | "uniform vec3 mul;" + |
30 | 30 | "void main(void){" + |
31 | 31 | "float r = texture2D(tex, gl_TexCoord[0].st).r;" + |
32 | - "if(int(255.0*r) == msk){" + | |
32 | + "if(int(255.25*r) == msk){" + | |
33 | 33 | " gl_FragColor = vec4(0.0);" + |
34 | 34 | "}else{" + |
35 | 35 | " vec4 c = texture1D(pal, r*0.9961);" + |