mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
recolor and rescale for path marker representations to make those easier toi distinguish and interact with
This commit is contained in:
parent
a72802b677
commit
fd56496e61
1 changed files with 6 additions and 6 deletions
|
|
@ -296,11 +296,11 @@ void Marker::initGFXResources()
|
||||||
|
|
||||||
smVertexBuffer.set(GFX, 4, GFXBufferTypeStatic);
|
smVertexBuffer.set(GFX, 4, GFXBufferTypeStatic);
|
||||||
GFXVertexPC* verts = smVertexBuffer.lock();
|
GFXVertexPC* verts = smVertexBuffer.lock();
|
||||||
verts[0].point = wedgePoints[0] * 0.25f;
|
verts[0].point = wedgePoints[0] * 1.25f;
|
||||||
verts[1].point = wedgePoints[1] * 0.25f;
|
verts[1].point = wedgePoints[1] * 1.25f;
|
||||||
verts[2].point = wedgePoints[2] * 0.25f;
|
verts[2].point = wedgePoints[2] * 1.25f;
|
||||||
verts[3].point = wedgePoints[3] * 0.25f;
|
verts[3].point = wedgePoints[3] * 1.25f;
|
||||||
verts[0].color = verts[1].color = verts[2].color = verts[3].color = GFXVertexColor(ColorI(0, 255, 0, 255));
|
verts[0].color = verts[1].color = verts[2].color = verts[3].color = GFXVertexColor(ColorI(255, 0, 0, 255));
|
||||||
smVertexBuffer.unlock();
|
smVertexBuffer.unlock();
|
||||||
|
|
||||||
smPrimitiveBuffer.set(GFX, 24, 12, GFXBufferTypeStatic);
|
smPrimitiveBuffer.set(GFX, 24, 12, GFXBufferTypeStatic);
|
||||||
|
|
@ -417,7 +417,7 @@ bool Marker::onAdd()
|
||||||
if(!Parent::onAdd())
|
if(!Parent::onAdd())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
mObjBox = Box3F(Point3F(-.25, -.25, -.25), Point3F(.25, .25, .25));
|
mObjBox = Box3F(Point3F(-1.25, -1.25, -1.25), Point3F(1.25, 1.25, 1.25));
|
||||||
resetWorldBox();
|
resetWorldBox();
|
||||||
|
|
||||||
if(gEditingMission)
|
if(gEditingMission)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue