lightmap fix

This commit is contained in:
Turanszki Janos
2019-08-29 20:20:25 +01:00
parent 9b9255ce13
commit d26b642b8d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ float4 main(Input input) : SV_TARGET
const uint bounces = xTraceUserData.x;
for (uint i = 0; (i < bounces) && any(ray.energy); ++i)
{
P = ray.origin;
float3 bounceResult = 0;
[loop]
@@ -175,7 +176,7 @@ float4 main(Input input) : SV_TARGET
float v = ray.bary.y;
float w = 1 - u - v;
float3 N = normalize(tri.n0 * w + tri.n1 * u + tri.n2 * v);
N = normalize(tri.n0 * w + tri.n1 * u + tri.n2 * v);
float4 uvsets = tri.u0 * w + tri.u1 * u + tri.u2 * v;
float4 color = tri.c0 * w + tri.c1 * u + tri.c2 * v;
uint materialIndex = tri.materialIndex;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 28;
// minor bug fixes, alterations, refactors, updates
const int revision = 15;
const int revision = 16;
long GetVersion()