new screenshot
This commit is contained in:
parent
06623e2558
commit
351f666ec8
|
|
@ -0,0 +1,7 @@
|
|||
#version 330
|
||||
|
||||
out vec4 finalColor;
|
||||
|
||||
void main() {
|
||||
finalColor = vec4(0.05, 0.05, 0.05, 1.0);
|
||||
}
|
||||
15
examples/shaders/resources/shaders/glsl100/outline_hull.vs
Normal file
15
examples/shaders/resources/shaders/glsl100/outline_hull.vs
Normal 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);
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#version 330
|
||||
|
||||
out vec4 finalColor;
|
||||
|
||||
void main() {
|
||||
finalColor = vec4(0.05, 0.05, 0.05, 1.0);
|
||||
}
|
||||
15
examples/shaders/resources/shaders/glsl120/outline_hull.vs
Normal file
15
examples/shaders/resources/shaders/glsl120/outline_hull.vs
Normal 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);
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 45 KiB |
Loading…
Reference in New Issue
Block a user