使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
Archivist
/
raylib-src
镜像自地址
https://github.com/raysan5/raylib
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
24
百科
动态
浏览代码
Corrected function name
texture2D() is deprecated on GLSL 330
pull/118/head
Ray
9 年前
父节点
d84f922372
当前提交
0e29aa2951
共有
2 个文件被更改
,包括
2 次插入
和
2 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-1
examples/resources/shaders/glsl330/bloom.fs
+1
-1
examples/resources/shaders/glsl330/swirl.fs
+ 1
- 1
examples/resources/shaders/glsl330/bloom.fs
查看文件
@ -22,7 +22,7 @@ void main()
{
for
(int
j
=
-3
;
j
<
3
;
j
+
+
)
{
sum
+=
texture
2D
(texture0,
fragTexCoord
+
vec2(j,
i
)
*
0
.004
)
*
0
.25
;
sum
+=
texture(texture0,
fragTexCoord
+
vec2(j,
i
)
*
0
.004
)
*
0
.25
;
}
}
+ 1
- 1
examples/resources/shaders/glsl330/swirl.fs
查看文件
@ -40,7 +40,7 @@ void main (void)
}
tc
+=
c
e
n
t
e
r
;
vec3
color
=
texture
2D
(texture0,
t
c
/
t
e
x
S
i
z
e
)
.
r
g
b
;
vec3
color
=
texture(texture0,
t
c
/
t
e
x
S
i
z
e
)
.
r
g
b
;
finalColor
=
vec4(color,
1
.0
)
;
;
}
撰写
预览
正在加载...
取消
保存