mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-22 21:05:39 +00:00
Spheres for Skies
-Added: SkySphere a full sphere skyBox -Change: ScatterSky now renders a dome instead of the top face of a cubeSphere -Change: Creator now has skySphere TODO: Simplify sphere creation PossibleMethod: Add the sphere creation functions to one place to be shared around.
This commit is contained in:
parent
916121a1bd
commit
1d5a36c4c0
6 changed files with 966 additions and 41 deletions
|
|
@ -104,6 +104,27 @@ public:
|
|||
///
|
||||
F32 getElevation() const { return mSunElevation; }
|
||||
|
||||
struct SphereVertex
|
||||
{
|
||||
Point3F pos;
|
||||
};
|
||||
|
||||
Vector<SphereVertex> tmpVertices;
|
||||
Vector<F32> vertsVec;
|
||||
|
||||
struct FinalVertexData
|
||||
{
|
||||
Point3F pos;
|
||||
};
|
||||
|
||||
Vector<FinalVertexData> finalVertData;
|
||||
|
||||
void addVertex(Point3F vert);
|
||||
|
||||
void BuildFinalVert();
|
||||
|
||||
void clearVectors();
|
||||
|
||||
protected:
|
||||
|
||||
void _render( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *overrideMat );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue