mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders. 1st installment.
Shader: flat - Default bed (cherry picked from commit prusa3d/PrusaSlicer@a5ff37013b)
This commit is contained in:
committed by
Noisyfox
parent
5fc056edfb
commit
9f4713eee8
10
resources/shaders/flat_attr.vs
Normal file
10
resources/shaders/flat_attr.vs
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 110
|
||||
|
||||
attribute vec3 v_position;
|
||||
|
||||
uniform mat4 projection_view_model_matrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection_view_model_matrix * vec4(v_position, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user