延迟渲染测试成功(内置几何体法不正确,待修正)

This commit is contained in:
2019-07-17 21:43:36 +08:00
parent 4d51417f2b
commit 39db360b4a
6 changed files with 15 additions and 56 deletions

View File

@@ -1098,8 +1098,8 @@ namespace hgl
if(np)
{
*np = 0.0f;++np;
*np = -1.0f;++np;
*np = 0.0f;++np;
*np = 1.0f;++np;
}
if(tp)
@@ -1126,8 +1126,8 @@ namespace hgl
if(np)
{
*np = 0.0f;++np;
*np = -1.0f;++np;
*np = 0.0f;++np;
*np = 1.0f;++np;
}
if(tp)
@@ -1159,8 +1159,8 @@ namespace hgl
if(np)
{
*np = h / l * cosf(currentAngle); ++np;
*np = r / l; ++np;
*np = h / l * -sinf(currentAngle); ++np;
*np =-r / l; ++np;
}
if(tp)