mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix #2251. Fix #2603. Bug where annotations don't show because redeclaration of built-in glsl variables is not allowed.
This commit is contained in:
@@ -122,7 +122,6 @@ class BaseDecorator:
|
|||||||
in vec3 pos;
|
in vec3 pos;
|
||||||
in uint topo;
|
in uint topo;
|
||||||
in vec3 next_vert;
|
in vec3 next_vert;
|
||||||
out vec4 gl_Position;
|
|
||||||
out uint type;
|
out uint type;
|
||||||
out vec4 v_next_vert;
|
out vec4 v_next_vert;
|
||||||
|
|
||||||
@@ -984,7 +983,6 @@ class HiddenDecorator(BaseDecorator):
|
|||||||
FRAG_GLSL = """
|
FRAG_GLSL = """
|
||||||
uniform float viewportDrawingScale;
|
uniform float viewportDrawingScale;
|
||||||
uniform vec4 color;
|
uniform vec4 color;
|
||||||
in vec2 gl_FragCoord;
|
|
||||||
in float dist;
|
in float dist;
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
@@ -1043,7 +1041,6 @@ class MiscDecorator(BaseDecorator):
|
|||||||
|
|
||||||
FRAG_GLSL = """
|
FRAG_GLSL = """
|
||||||
uniform vec4 color;
|
uniform vec4 color;
|
||||||
in vec2 gl_FragCoord;
|
|
||||||
in float dist;
|
in float dist;
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
@@ -1401,7 +1398,6 @@ class GridDecorator(BaseDecorator):
|
|||||||
|
|
||||||
FRAG_GLSL = """
|
FRAG_GLSL = """
|
||||||
uniform vec4 color;
|
uniform vec4 color;
|
||||||
in vec2 gl_FragCoord;
|
|
||||||
in float dist;
|
in float dist;
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user