RT Shading works
This commit is contained in:
1 parent
f943407b26
commit
60e74f87b8
14 files changed
+60
-51
No files matched your search
@@ -53,5 +53,5 @@ void closestHit(inout RayPayload hitValue, in BuiltInTriangleIntersectionAttribu
|
||||
// gamma correction
|
||||
result = result / (result + float3(1.0));
|
||||
result = pow(result, float3(1.0/2.2));
|
||||
hitValue.color = getMaterialTextureParameter(0).Sample(getMaterialSamplerParameter(0), params.texCoords[0]).xyz;
|
||||
hitValue.color = result;
|
||||
}
|
||||
Reference in new issue
Block a user