mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-18 15:35:55 +08:00
Tech ENABLE_OPENGL_ES - Removed unneeded lines from shaders mm_contour and gouraud
This commit is contained in:
parent
575c9ae6fb
commit
8513e78759
@ -1,5 +1,4 @@
|
|||||||
#version 100
|
#version 100
|
||||||
#extension GL_NV_fragdepth : enable
|
|
||||||
|
|
||||||
precision highp float;
|
precision highp float;
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#version 100
|
#version 100
|
||||||
#extension GL_NV_fragdepth : enable
|
|
||||||
|
|
||||||
precision highp float;
|
precision highp float;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ attribute vec3 v_position;
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
// Add small epsilon to z to solve z-fighting between painted triangles and contour lines.
|
// Add small epsilon to z to solve z-fighting
|
||||||
vec4 clip_position = projection_matrix * view_model_matrix * vec4(v_position, 1.0);
|
vec4 clip_position = projection_matrix * view_model_matrix * vec4(v_position, 1.0);
|
||||||
clip_position.z -= offset * abs(clip_position.w);
|
clip_position.z -= offset * abs(clip_position.w);
|
||||||
gl_Position = clip_position;
|
gl_Position = clip_position;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user