fix in hairparticle expansion VS

This commit is contained in:
Turanszki Janos
2017-10-18 21:36:16 +01:00
parent aabed6aee6
commit 576485cfbc
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -81,6 +81,11 @@ VertexToPixel main(uint fakeIndex : SV_VERTEXID)
float3 wind = sin(g_xFrame_Time + (pos.x + pos.y + pos.z))*g_xFrame_WindDirection.xyz * patchPos.y * 0.03f;
float3 windPrev = sin(g_xFrame_TimePrev + (pos.x + pos.y + pos.z))*g_xFrame_WindDirection.xyz * patchPos.y * 0.03f;
// transform particle by the emitter object matrix:
pos.xyz = mul(float4(pos.xyz, 1), xWorld).xyz;
normal = mul(normal, (float3x3)xWorld);
tangent = mul(tangent, (float3x3)xWorld);
// rotate the patch into the tangent space of the emitting triangle:
float3x3 TBN = float3x3(tangent, normal, cross(normal, tangent));
patchPos = mul(patchPos, TBN);
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 13;
// minor bug fixes, alterations, refactors, updates
const int revision = 37;
const int revision = 38;
long GetVersion()