mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 17:08:42 +03:00
update resources
update resources
This commit is contained in:
19
resources/shaders/ES/tool_marker.fs
Normal file
19
resources/shaders/ES/tool_marker.fs
Normal file
@@ -0,0 +1,19 @@
|
||||
#version 100
|
||||
|
||||
precision highp float;
|
||||
|
||||
const vec2 ZERO = vec2(0.0, 0.0);
|
||||
|
||||
uniform vec4 uniform_color;
|
||||
|
||||
// x = diffuse, y = specular;
|
||||
varying vec2 intensity;
|
||||
varying vec2 clipping_planes_dots;
|
||||
|
||||
void main()
|
||||
{
|
||||
if (any(lessThan(clipping_planes_dots, ZERO)))
|
||||
discard;
|
||||
|
||||
gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * intensity.x, uniform_color.a);
|
||||
}
|
||||
Reference in New Issue
Block a user