mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1663 from Azaezel/rainleak
corrects corruption in precipitation class
This commit is contained in:
commit
679d94d170
|
|
@ -963,7 +963,7 @@ void Precipitation::initRenderObjects()
|
||||||
|
|
||||||
// Create a volitile vertex buffer which
|
// Create a volitile vertex buffer which
|
||||||
// we'll lock and fill every frame.
|
// 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
|
// Init the index buffer for rendering the
|
||||||
// entire or a partially filled vb.
|
// entire or a partially filled vb.
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
struct Conn
|
struct Conn
|
||||||
{
|
{
|
||||||
float4 position : TORQUE_POSITION;
|
float4 position : TORQUE_POSITION;
|
||||||
float4 texCoord : TEXCOORD0;
|
float2 texCoord : TEXCOORD0;
|
||||||
float4 color : COLOR0;
|
float4 color : COLOR0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,13 +32,14 @@
|
||||||
struct Vert
|
struct Vert
|
||||||
{
|
{
|
||||||
float3 position : POSITION;
|
float3 position : POSITION;
|
||||||
float4 texCoord : TEXCOORD0;
|
float2 texCoord : TEXCOORD0;
|
||||||
|
float4 color : COLOR0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Conn
|
struct Conn
|
||||||
{
|
{
|
||||||
float4 position : TORQUE_POSITION;
|
float4 position : TORQUE_POSITION;
|
||||||
float4 texCoord : TEXCOORD0;
|
float2 texCoord : TEXCOORD0;
|
||||||
float4 color : COLOR0;
|
float4 color : COLOR0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
struct Conn
|
struct Conn
|
||||||
{
|
{
|
||||||
float4 position : TORQUE_POSITION;
|
float4 position : TORQUE_POSITION;
|
||||||
float4 texCoord : TEXCOORD0;
|
float2 texCoord : TEXCOORD0;
|
||||||
float4 color : COLOR0;
|
float4 color : COLOR0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,13 +32,14 @@
|
||||||
struct Vert
|
struct Vert
|
||||||
{
|
{
|
||||||
float3 position : POSITION;
|
float3 position : POSITION;
|
||||||
float4 texCoord : TEXCOORD0;
|
float2 texCoord : TEXCOORD0;
|
||||||
|
float4 color : COLOR0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Conn
|
struct Conn
|
||||||
{
|
{
|
||||||
float4 position : TORQUE_POSITION;
|
float4 position : TORQUE_POSITION;
|
||||||
float4 texCoord : TEXCOORD0;
|
float2 texCoord : TEXCOORD0;
|
||||||
float4 color : COLOR0;
|
float4 color : COLOR0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue