This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
new screenshot
pull/5615/head
ggrizzly
1 week ago
parent
06623e2558
commit
351f666ec8
5 changed files
with
44 additions
and
0 deletions
Split View
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
BIN
examples/shaders/shaders_cel_shading.png
+ 7
- 0
examples/shaders/resources/shaders/glsl100/outline_hull.fs
View File
@ -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
View File
@ -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
View File
@ -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
View File
@ -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);
}
BIN
examples/shaders/shaders_cel_shading.png
View File
Before
After
Width:
801
| Height:
449
| Size:
35 KiB
Width:
800
| Height:
450
| Size:
45 KiB
Write
Preview
Loading…
Cancel
Save