Updated libBoo

This commit is contained in:
Jack Andersen 2015-11-25 14:22:55 -10:00
parent 83a3c645ae
commit f7e195a140
2 changed files with 9 additions and 9 deletions

2
hecl/extern/libBoo vendored

@ -1 +1 @@
Subproject commit 3bcfa99b5aa5a9c5b74da24b0089775a20fe141c Subproject commit 6c83991e2a297ccf4b47a87b098b50bd9ab06c6b

View File

@ -38,19 +38,19 @@ boo::IVertexFormat* HMDLData::NewVertexFormat(boo::IGraphicsDataFactory* factory
vdescs[i].indexBuffer = ibo; vdescs[i].indexBuffer = ibo;
} }
vdescs[0].semantic = boo::VertexSemantic::Position; vdescs[0].semantic = boo::VertexSemantic::Position3;
vdescs[1].semantic = boo::VertexSemantic::Normal; vdescs[1].semantic = boo::VertexSemantic::Normal3;
size_t e = 2; size_t e = 2;
for (size_t i=0 ; i<meta.colorCount ; ++i, ++e) for (size_t i=0 ; i<meta.colorCount ; ++i, ++e)
{ {
vdescs[e].semantic = boo::VertexSemantic::Color; vdescs[e].semantic = boo::VertexSemantic::ColorUNorm;
vdescs[e].semanticIdx = i; vdescs[e].semanticIdx = i;
} }
for (size_t i=0 ; i<meta.uvCount ; ++i, ++e) for (size_t i=0 ; i<meta.uvCount ; ++i, ++e)
{ {
vdescs[e].semantic = boo::VertexSemantic::UV; vdescs[e].semantic = boo::VertexSemantic::UV2;
vdescs[e].semanticIdx = i; vdescs[e].semanticIdx = i;
} }
@ -74,19 +74,19 @@ boo::IVertexFormat* ShaderTag::newVertexFormat(boo::IGraphicsDataFactory *factor
vdescs[i].indexBuffer = nullptr; vdescs[i].indexBuffer = nullptr;
} }
vdescs[0].semantic = boo::VertexSemantic::Position; vdescs[0].semantic = boo::VertexSemantic::Position3;
vdescs[1].semantic = boo::VertexSemantic::Normal; vdescs[1].semantic = boo::VertexSemantic::Normal3;
size_t e = 2; size_t e = 2;
for (size_t i=0 ; i<m_colorCount ; ++i, ++e) for (size_t i=0 ; i<m_colorCount ; ++i, ++e)
{ {
vdescs[e].semantic = boo::VertexSemantic::Color; vdescs[e].semantic = boo::VertexSemantic::ColorUNorm;
vdescs[e].semanticIdx = i; vdescs[e].semanticIdx = i;
} }
for (size_t i=0 ; i<m_uvCount ; ++i, ++e) for (size_t i=0 ; i<m_uvCount ; ++i, ++e)
{ {
vdescs[e].semantic = boo::VertexSemantic::UV; vdescs[e].semantic = boo::VertexSemantic::UV2;
vdescs[e].semanticIdx = i; vdescs[e].semanticIdx = i;
} }