Commit 59fa1103 authored by chili's avatar chili
Browse files

need to nix primitive id to debug shader

parent 0e8bebbf
......@@ -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++ )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment