mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
material definition
changing the beast over to the refactor
This commit is contained in:
parent
4d980e5406
commit
cebfdbc5ec
13 changed files with 61 additions and 105 deletions
|
|
@ -969,10 +969,10 @@ void GroundCover::_initialize( U32 cellCount, U32 cellPlacementCount )
|
|||
if(mat)
|
||||
{
|
||||
GFXTexHandle tex;
|
||||
if (mat->getDiffuseMapResource(0))
|
||||
tex = mat->getDiffuseMapResource(0);
|
||||
else if (mat->getDiffuseMap(0) != StringTable->EmptyString())
|
||||
tex = GFXTexHandle(mat->getDiffuseMap(0), &GFXStaticTextureSRGBProfile, "GroundCover texture aspect ratio check");
|
||||
if (mat->getDiffuseMap(0))
|
||||
tex = mat->getDiffuseMap(0);
|
||||
else if (mat->getDiffuseMapAsset(0).notNull())
|
||||
tex = mat->getDiffuseMap(0);
|
||||
|
||||
if(tex.isValid())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue