本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
Archivist
/
raylib-src
镜像来自
https://github.com/raysan5/raylib
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
24
Wiki
活動
瀏覽代碼
new screenshot
pull/5615/head
ggrizzly
1 周之前
父節點
06623e2558
當前提交
351f666ec8
共有
5 個檔案被更改
,包括
44 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-0
examples/shaders/resources/shaders/glsl100/outline_hull.fs
+15
-0
examples/shaders/resources/shaders/glsl100/outline_hull.vs
+7
-0
examples/shaders/resources/shaders/glsl120/outline_hull.fs
+15
-0
examples/shaders/resources/shaders/glsl120/outline_hull.vs
二進制
examples/shaders/shaders_cel_shading.png
+ 7
- 0
examples/shaders/resources/shaders/glsl100/outline_hull.fs
查看文件
@ -0,0 +1,7 @@
#version
330
out
vec4
f
i
n
a
l
C
o
l
o
r
;
void
main()
{
finalColor
=
vec4(0.05,
0
.05
,
0
.05
,
1
.0
)
;
}
+ 15
- 0
examples/shaders/resources/shaders/glsl100/outline_hull.vs
查看文件
@ -0,0 +1,15 @@
#version 330
in vec3 vertexPosition;
in vec3 vertexNormal;
in vec2 vertexTexCoord;
in vec4 vertexColor;
uniform mat4 mvp;
uniform float outlineThickness;
void main() {
// Extrude vertex along its normal to create the hull.
vec3 extruded = vertexPosition + vertexNormal * outlineThickness;
gl_Position = mvp * vec4(extruded, 1.0);
}
+ 7
- 0
examples/shaders/resources/shaders/glsl120/outline_hull.fs
查看文件
@ -0,0 +1,7 @@
#version
330
out
vec4
f
i
n
a
l
C
o
l
o
r
;
void
main()
{
finalColor
=
vec4(0.05,
0
.05
,
0
.05
,
1
.0
)
;
}
+ 15
- 0
examples/shaders/resources/shaders/glsl120/outline_hull.vs
查看文件
@ -0,0 +1,15 @@
#version 330
in vec3 vertexPosition;
in vec3 vertexNormal;
in vec2 vertexTexCoord;
in vec4 vertexColor;
uniform mat4 mvp;
uniform float outlineThickness;
void main() {
// Extrude vertex along its normal to create the hull.
vec3 extruded = vertexPosition + vertexNormal * outlineThickness;
gl_Position = mvp * vec4(extruded, 1.0);
}
二進制
examples/shaders/shaders_cel_shading.png
查看文件
Before
After
Width:
801
| Height:
449
| Size:
35 KiB
Width:
800
| Height:
450
| Size:
45 KiB
Write
Preview
Loading…
取消
儲存