This website works better with JavaScript.
首頁
說明
登入
lolengine
/
lol
镜像来自
https://github.com/lolengine/lol
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
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 年之前
父節點
04a5da4652
當前提交
489b02b077
共有
1 個文件被更改
,包括
1 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
取消
儲存