mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
NEW:add flat shader for cut tool
Jira:STUDIO-4227 thanks for PrusaSlcer and enricoturri1966 commit 76d1d4949bbd0964717f8112aae992a1267c5eb4 Author: enricoturri1966 <enricoturri@seznam.cz> Date: Mon Mar 21 13:10:47 2022 +0100 Tech ENABLE_GL_SHADERS_ATTRIBUTES - Added shaders for glsl version 140 ... Change-Id: I4db00805830f07a5eaa95cfc7b8254c61b86f0c8
This commit is contained in:
11
resources/shaders/flat.vs
Normal file
11
resources/shaders/flat.vs
Normal file
@@ -0,0 +1,11 @@
|
||||
#version 110
|
||||
|
||||
uniform mat4 view_model_matrix;
|
||||
uniform mat4 projection_matrix;
|
||||
|
||||
attribute vec3 v_position;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection_matrix * view_model_matrix * vec4(v_position, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user