mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
cubemap baking fix
the key part of this issue was to invert the order we were baking the faces. Not much of a fix but it works better than before need to get a proper fix implement the way the issue is copying X+ into every other face but isnt doing it in the reverse order means the rtv for face 0 must be being replicated into all other faces.
This commit is contained in:
parent
49c76cc486
commit
f288ffccba
6 changed files with 94 additions and 72 deletions
|
|
@ -45,19 +45,7 @@ GFXCubemap::~GFXCubemap()
|
|||
|
||||
U32 GFXCubemap::zUpFaceIndex(const U32 index)
|
||||
{
|
||||
switch (index)
|
||||
{
|
||||
case 2:
|
||||
return 4;
|
||||
case 3:
|
||||
return 5;
|
||||
case 4:
|
||||
return 2;
|
||||
case 5:
|
||||
return 3;
|
||||
default:
|
||||
return index;
|
||||
};
|
||||
return index;
|
||||
}
|
||||
|
||||
void GFXCubemap::initNormalize( U32 size )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue