Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Clark Lin
hw3d
Commits
59fa1103
Commit
59fa1103
authored
May 02, 2019
by
chili
Browse files
need to nix primitive id to debug shader
parent
0e8bebbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/Prism.h
View file @
59fa1103
...
...
@@ -158,22 +158,22 @@ public:
// near base indices
for
(
unsigned
short
iLong
=
0
;
iLong
<
longDiv
;
iLong
++
)
{
const
auto
i
=
iLong
*
2
;
const
auto
mod
=
longDiv
*
2
;
const
auto
i
=
iLong
;
const
auto
mod
=
longDiv
;
// near
indices
.
push_back
(
i
+
iBaseNear
);
indices
.
push_back
(
iCenterNear
);
indices
.
push_back
(
(
i
+
2
)
%
mod
+
iBaseNear
);
indices
.
push_back
(
(
i
+
1
)
%
mod
+
iBaseNear
);
}
// far base indices
for
(
unsigned
short
iLong
=
0
;
iLong
<
longDiv
;
iLong
++
)
{
const
auto
i
=
iLong
*
2
;
const
auto
mod
=
longDiv
*
2
;
const
auto
i
=
iLong
;
const
auto
mod
=
longDiv
;
// far
indices
.
push_back
(
iCenterFar
);
indices
.
push_back
(
i
+
1
+
iBaseFar
);
indices
.
push_back
(
(
i
+
3
)
%
mod
+
iBaseFar
);
indices
.
push_back
(
i
+
iBaseFar
);
indices
.
push_back
(
(
i
+
1
)
%
mod
+
iBaseFar
);
}
// fusilage indices
for
(
unsigned
short
iLong
=
0
;
iLong
<
longDiv
;
iLong
++
)
...
...
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