forked from bartvdbraak/blender
fix for casting shadows of scaled objects was made to X_BlenderRenderTools.cpp but not to GPC_RenderTools.cpp.
This commit is contained in:
parent
11087d4a82
commit
23440884fe
@ -278,6 +278,12 @@ void GPC_RenderTools::applyTransform(RAS_IRasterizer* rasty,double* oglmatrix,in
|
|||||||
// couldn't find something to cast the shadow on...
|
// couldn't find something to cast the shadow on...
|
||||||
glMultMatrixd(oglmatrix);
|
glMultMatrixd(oglmatrix);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{ // we found the "ground", but the cast matrix doesn't take
|
||||||
|
// scaling in consideration, so we must apply the object scale
|
||||||
|
MT_Vector3 size = gameobj->GetSGNode()->GetLocalScale();
|
||||||
|
glScalef(size[0], size[1], size[2]);
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user