This website works better with JavaScript.
首頁
探索
說明
登入
Archivist
/
raylib-src
镜像来自
https://github.com/raysan5/raylib
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
24
Wiki
Activity
瀏覽代碼
Corrected function name
texture2D() is deprecated on GLSL 330
pull/118/head
Ray
8 年之前
父節點
d84f922372
當前提交
0e29aa2951
共有
2 個文件被更改
,包括
2 次插入
和
2 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
)
;
;
}
Write
Preview
Loading…
取消
儲存