mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Assetifies MeshRoad, Decal Road, and the material slot of GroundCover
Creates a networked and non-networked variant of DECLARE_MATERIALASSET macro
This commit is contained in:
parent
a0ba345095
commit
bf5b26f734
17 changed files with 301 additions and 117 deletions
|
|
@ -52,6 +52,8 @@
|
|||
|
||||
#include "math/util/decomposePoly.h"
|
||||
|
||||
#include "T3D/assets/MaterialAsset.h"
|
||||
|
||||
//extern U32 gIdxArray[6][2][3];
|
||||
|
||||
struct MeshRoadHitSegment
|
||||
|
|
@ -619,7 +621,11 @@ protected:
|
|||
GFXVertexBufferHandle<GFXVertexPNTT> mVB[SurfaceCount];
|
||||
GFXPrimitiveBufferHandle mPB[SurfaceCount];
|
||||
|
||||
String mMaterialName[SurfaceCount];
|
||||
DECLARE_NET_MATERIALASSET(MeshRoad, TopMaterial, MeshRoadMask);
|
||||
DECLARE_NET_MATERIALASSET(MeshRoad, BottomMaterial, MeshRoadMask);
|
||||
DECLARE_NET_MATERIALASSET(MeshRoad, SideMaterial, MeshRoadMask);
|
||||
|
||||
//String mMaterialName[SurfaceCount];
|
||||
SimObjectPtr<Material> mMaterial[SurfaceCount];
|
||||
BaseMatInstance *mMatInst[SurfaceCount];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue