Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
a22d3a03
Commit
a22d3a03
authored
Sep 22, 2016
by
tenter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix axis rendering bug
parent
f8748ef0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Shaders/PrincipalAxisNode/3d_instanced.glsl
Shaders/PrincipalAxisNode/3d_instanced.glsl
+2
-1
Shaders/PrincipalAxisNode/lines_extruded_instanced.glsl
Shaders/PrincipalAxisNode/lines_extruded_instanced.glsl
+2
-1
No files found.
Shaders/PrincipalAxisNode/3d_instanced.glsl
View file @
a22d3a03
...
...
@@ -13,12 +13,13 @@ uniform float pa_cone_radius;
uniform
vec3
pa_scale
;
uniform
vec3
pa_offset
;
uniform
int
pa_visible_tensors
;
void
main
()
{
SG_VERTEX_BEGIN
;
int
pa_component
=
gl_InstanceID
%
3
;
int
pa_component
=
gl_InstanceID
%
pa_visible_tensors
;
vec4
pa_posOS
=
SG_INPUT_POSOS
;
...
...
Shaders/PrincipalAxisNode/lines_extruded_instanced.glsl
View file @
a22d3a03
...
...
@@ -16,12 +16,13 @@ uniform vec2 pa_screenSize;
uniform
vec3
pa_scale
;
uniform
vec3
pa_offset
;
uniform
int
pa_visible_tensors
;
void
main
()
{
SG_VERTEX_BEGIN
;
int
pa_component
=
gl_InstanceID
%
3
;
int
pa_component
=
gl_InstanceID
%
pa_visible_tensors
;
// positions of the line end-points
vec4
pa_posOS
[
2
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment