mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
feat: add outline for block that is looked
This commit is contained in:
7
src/shaders/outline_f_shader.glsl
Normal file
7
src/shaders/outline_f_shader.glsl
Normal file
@@ -0,0 +1,7 @@
|
||||
#version 460
|
||||
|
||||
out vec4 frag_color;
|
||||
|
||||
void main(void) {
|
||||
frag_color = vec4(0.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
10
src/shaders/outline_v_shader.glsl
Normal file
10
src/shaders/outline_v_shader.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 460
|
||||
|
||||
layout (location = 0) in vec3 vertices_pos;
|
||||
|
||||
uniform mat4 mv_matrix;
|
||||
uniform mat4 proj_matrix;
|
||||
|
||||
void main(void) {
|
||||
gl_Position = proj_matrix * mv_matrix * vec4(vertices_pos, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user