Fixed HLSL shaders (mostly ray tracing related)
Updated HLSL compile script
This commit is contained in:
parent
cb836dd6d0
commit
66dce3c991
14 changed files with 53 additions and 28 deletions
|
|
@ -1,7 +1,13 @@
|
|||
// Copyright 2020 Google LLC
|
||||
|
||||
[shader("miss")]
|
||||
void main([[vk::location(0)]] in float3 hitValue)
|
||||
struct Payload
|
||||
{
|
||||
hitValue = float3(0.0, 0.0, 0.2);
|
||||
[[vk::location(0)]] float3 hitValue;
|
||||
[[vk::location(1)]] bool shadowed;
|
||||
};
|
||||
|
||||
[shader("miss")]
|
||||
void main(inout Payload payload)
|
||||
{
|
||||
payload.hitValue = float3(0.0, 0.0, 0.2);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue