浏览代码

corrects corruption in precipitation class

Azaezel 9 年之前
父节点
当前提交
2723bfbc91

+ 1 - 1
Engine/source/T3D/fx/precipitation.cpp

@@ -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.

+ 1 - 1
Templates/Empty/game/shaders/common/precipP.hlsl

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

+ 3 - 2
Templates/Empty/game/shaders/common/precipV.hlsl

@@ -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;
 };
 

+ 1 - 1
Templates/Full/game/shaders/common/precipP.hlsl

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

+ 3 - 2
Templates/Full/game/shaders/common/precipV.hlsl

@@ -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;
 };