add alias _shadeangle to _smoothnormals
git-svn-id: svn://svn.icculus.org/netradiant/trunk@315 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
parent
00ca297335
commit
4ae10cbf8d
|
|
@ -1028,6 +1028,8 @@ void SmoothMetaTriangles( void )
|
||||||
for( i = 0, tri = &metaTriangles[ i ]; i < numMetaTriangles; i++, tri++ )
|
for( i = 0, tri = &metaTriangles[ i ]; i < numMetaTriangles; i++, tri++ )
|
||||||
{
|
{
|
||||||
/* vortex: try get smoothing from entity key */
|
/* vortex: try get smoothing from entity key */
|
||||||
|
shadeAngle = FloatForKey(&entities[tri->entityNum], "_shadeangle");
|
||||||
|
if (shadeAngle <= 0.0f)
|
||||||
shadeAngle = FloatForKey(&entities[tri->entityNum], "_smoothnormals");
|
shadeAngle = FloatForKey(&entities[tri->entityNum], "_smoothnormals");
|
||||||
if (shadeAngle <= 0.0f)
|
if (shadeAngle <= 0.0f)
|
||||||
shadeAngle = FloatForKey(&entities[tri->entityNum], "_sn");
|
shadeAngle = FloatForKey(&entities[tri->entityNum], "_sn");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user