Added HLSL shaders for ray tracing callable sample
Minor cleanup
This commit is contained in:
parent
35288a6f2b
commit
5db9781d52
14 changed files with 168 additions and 63 deletions
12
data/shaders/hlsl/raytracingcallable/miss.rmiss
Normal file
12
data/shaders/hlsl/raytracingcallable/miss.rmiss
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2021 Sascha Willems
|
||||
|
||||
struct Payload
|
||||
{
|
||||
[[vk::location(0)]] float3 hitValue;
|
||||
};
|
||||
|
||||
[shader("miss")]
|
||||
void main(inout Payload p)
|
||||
{
|
||||
p.hitValue = float3(0.0, 0.0, 0.2);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue