소스 검색

gpu: fix syntax issue in shader.

The “f” suffix is valid GLSL, but WebGL does not like it so let’s disable it.
undefined
Sam Hocevar 9 년 전
부모
커밋
489b02b077
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/gpu/palette.lolfx

+ 1
- 1
src/gpu/palette.lolfx 파일 보기

@@ -33,7 +33,7 @@ varying vec2 pass_TexCoord;
void main()
{
vec4 pal = texture2D(u_texture, pass_TexCoord);
vec4 col = texture2D(u_palette, vec2(pal.x, 0.f));
vec4 col = texture2D(u_palette, vec2(pal.x, 0.0));
if (pal.x == 0.0)
discard;
gl_FragColor = col;


불러오는 중...
취소
저장