Sketch ini
This commit is contained in:
parent
be0177b1b0
commit
b8bab2264f
16 changed files with 2510 additions and 0 deletions
16
Sketch3D/rsc/shaders/stroke.vert
Normal file
16
Sketch3D/rsc/shaders/stroke.vert
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#version 330 core
|
||||
|
||||
layout(location = 0) in vec4 point;
|
||||
|
||||
out float thickness;
|
||||
|
||||
uniform mat4 MVP;
|
||||
|
||||
void main() {
|
||||
thickness = point.w;
|
||||
// gl_Position = MVP * vec4(point.xyz, 1);
|
||||
|
||||
vec4 vec = MVP * vec4(point.xyz, 1);
|
||||
vec.z *= vec.w;
|
||||
gl_Position = vec;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue