Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Luis Penaranda
/
panoramic
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 44ec9b4f
authored
Aug 19, 2013
by
Luis Penaranda
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
very minor
1 parent
23bb9e6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
openglcanvas.cpp
shaders/vertex_shader.vert
openglcanvas.cpp
View file @
44ec9b4
...
...
@@ -505,7 +505,6 @@ void OpenGLCanvas::vertex_transformation(float *positions, int m, int n, float c
positions
[
3
*
(
j
+
i
*
n
)
+
2
]
=
z
;
}
// perspective
if
(
visualization
==
"Zorin-Barr"
){
// perspective
u
=
x
/
(
-
z
);
...
...
shaders/vertex_shader.vert
View file @
44ec9b4
...
...
@@ -71,8 +71,8 @@ void main(void){
else
if
(
vis_mode
==
3
.
0
)
// Equi-Rectangular
gl_Position
=
vec4
(
lambda
,
phi
,
z
,
1
.
0
);
else
if
(
vis_mode
==
4
.
0
)
{
// Stereographic
u
=
2
.
f
*
x
/
(
-
z
+
1
);
v
=
2
.
f
*
y
/
(
-
z
+
1
);
u
=
2
.
0
*
x
/
(
-
z
+
1
.
0
);
v
=
2
.
0
*
y
/
(
-
z
+
1
.
0
);
gl_Position
=
vec4
(
u
/
extent
,
v
/
extent
,
z
,
1
.
0
);
}
else
if
(
vis_mode
==
5
.
0
)
{
// Mercator
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment