Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Modules
Commits
d03f9bfe
Commit
d03f9bfe
authored
Jun 03, 2015
by
reichenbach
Browse files
[FIX] fixed isolines position when qform is enabled
parent
7d3850bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
FiberStippleToolbox/src/isoLines/shaders/WIsolines-vertex.glsl
...StippleToolbox/src/isoLines/shaders/WIsolines-vertex.glsl
+1
-4
No files found.
FiberStippleToolbox/src/isoLines/shaders/WIsolines-vertex.glsl
View file @
d03f9bfe
...
...
@@ -83,10 +83,7 @@ uniform float u_resolution; // could be calculated from gl_TexCoord[1], but for
vec3
textPos
(
vec3
p
)
{
// compute texture coordinates from worldspace coordinates for texture access
vec3
texturePosition
=
(
u_WorldTransform
*
vec4
(
p
,
1
.
0
)
).
xyz
;
texturePosition
.
x
/=
u_scalarDataSizeX
;
texturePosition
.
y
/=
u_scalarDataSizeY
;
texturePosition
.
z
/=
u_scalarDataSizeZ
;
vec3
texturePosition
=
(
gl_TextureMatrix
[
0
]
*
u_WorldTransform
*
vec4
(
p
,
1
.
0
)
).
xyz
;
return
texturePosition
;
}
...
...
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