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
035f0975
Commit
035f0975
authored
Jul 26, 2019
by
chili
Browse files
loading texture coordinates from mesh data
parent
181b5d26
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/Mesh.cpp
View file @
035f0975
...
...
@@ -252,7 +252,8 @@ std::unique_ptr<Mesh> Model::ParseMesh( Graphics& gfx,const aiMesh& mesh,const a
{
vbuf
.
EmplaceBack
(
*
reinterpret_cast
<
dx
::
XMFLOAT3
*>
(
&
mesh
.
mVertices
[
i
]),
*
reinterpret_cast
<
dx
::
XMFLOAT3
*>
(
&
mesh
.
mNormals
[
i
])
*
reinterpret_cast
<
dx
::
XMFLOAT3
*>
(
&
mesh
.
mNormals
[
i
]),
*
reinterpret_cast
<
dx
::
XMFLOAT2
*>
(
&
mesh
.
mTextureCoords
[
0
][
i
])
);
}
...
...
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