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
Glow
glow-extras
Commits
e4e5573a
Commit
e4e5573a
authored
Mar 04, 2020
by
Kersten Schuster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flipped quad y-coord so that backface culling works correctly.
parent
ff9d62f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
geometry/glow-extras/geometry/Quad.hh
geometry/glow-extras/geometry/Quad.hh
+3
-3
No files found.
geometry/glow-extras/geometry/Quad.hh
View file @
e4e5573a
...
...
@@ -71,10 +71,10 @@ public:
ab
->
setObjectLabel
(
"Quad"
);
ab
->
defineAttributes
(
attributes
);
VertexT
data
[]
=
{
gen
(
minCoord
.
x
,
minCoord
.
y
),
//
gen
(
minCoord
.
x
,
maxCoord
.
y
),
//
gen
(
maxCoord
.
x
,
minCoord
.
y
),
//
gen
(
maxCoord
.
x
,
maxCoord
.
y
),
gen
(
minCoord
.
x
,
minCoord
.
y
),
//
gen
(
maxCoord
.
x
,
maxCoord
.
y
),
//
gen
(
maxCoord
.
x
,
minCoord
.
y
),
};
ab
->
bind
().
setData
(
data
);
auto
va
=
VertexArray
::
create
(
ab
,
nullptr
,
GL_TRIANGLE_STRIP
);
...
...
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