corrects corruption in precipitation class

This commit is contained in:
Azaezel 2016-06-23 11:44:17 -05:00
parent 963ef1ecdb
commit 2723bfbc91
5 changed files with 9 additions and 7 deletions

View file

@ -963,7 +963,7 @@ void Precipitation::initRenderObjects()
// Create a volitile vertex buffer which
// we'll lock and fill every frame.
mRainVB.set(GFX, mMaxVBDrops * 4, GFXBufferTypeVolatile);
mRainVB.set(GFX, mMaxVBDrops * 4, GFXBufferTypeDynamic);
// Init the index buffer for rendering the
// entire or a partially filled vb.

View file

@ -29,7 +29,7 @@
struct Conn
{
float4 position : TORQUE_POSITION;
float4 texCoord : TEXCOORD0;
float2 texCoord : TEXCOORD0;
float4 color : COLOR0;
};

View file

@ -32,13 +32,14 @@
struct Vert
{
float3 position : POSITION;
float4 texCoord : TEXCOORD0;
float2 texCoord : TEXCOORD0;
float4 color : COLOR0;
};
struct Conn
{
float4 position : TORQUE_POSITION;
float4 texCoord : TEXCOORD0;
float2 texCoord : TEXCOORD0;
float4 color : COLOR0;
};

View file

@ -29,7 +29,7 @@
struct Conn
{
float4 position : TORQUE_POSITION;
float4 texCoord : TEXCOORD0;
float2 texCoord : TEXCOORD0;
float4 color : COLOR0;
};

View file

@ -32,13 +32,14 @@
struct Vert
{
float3 position : POSITION;
float4 texCoord : TEXCOORD0;
float2 texCoord : TEXCOORD0;
float4 color : COLOR0;
};
struct Conn
{
float4 position : TORQUE_POSITION;
float4 texCoord : TEXCOORD0;
float2 texCoord : TEXCOORD0;
float4 color : COLOR0;
};