diff options
author | Jack Ha <j.ha@ultimaker.com> | 2017-02-01 18:29:21 +0300 |
---|---|---|
committer | Jack Ha <j.ha@ultimaker.com> | 2017-02-01 18:29:21 +0300 |
commit | 4659d8616eacf3d78b76903d0080f476a45ec13f (patch) | |
tree | 19bc2863c67f6a17a1f9302659a97ee13226fc11 /plugins/XRayView | |
parent | 4bb8e1b0252b5d9bf1974d3a55366292ad1ecf61 (diff) |
Fixed some opengl 4.1 core vertex and fragment shaders, layerview anchor. CURA-3273
Diffstat (limited to 'plugins/XRayView')
-rw-r--r-- | plugins/XRayView/xray.shader | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/XRayView/xray.shader b/plugins/XRayView/xray.shader index b42b3e056a..41b00154ea 100644 --- a/plugins/XRayView/xray.shader +++ b/plugins/XRayView/xray.shader @@ -17,6 +17,28 @@ fragment = gl_FragColor = u_color; } +vertex41core = + #version 410 + uniform highp mat4 u_modelViewProjectionMatrix; + + in highp vec4 a_vertex; + + void main() + { + gl_Position = u_modelViewProjectionMatrix * a_vertex; + } + +fragment41core = + #version 410 + uniform lowp vec4 u_color; + + out vec4 frag_color; + + void main() + { + frag_color = u_color; + } + [defaults] u_color = [0.02, 0.02, 0.02, 1.0] |