procedural-3d-engine/shaders/hlsl/raytracingpositionfetch/miss.rmiss

16 lines
226 B
Text
Raw Normal View History

2024-03-19 18:29:43 +01:00
/* Copyright (c) 2024, Sascha Willems
*
* SPDX-License-Identifier: MIT
*
*/
struct Payload
{
[[vk::location(0)]] float3 hitValue;
};
[shader("miss")]
void main(inout Payload p)
{
p.hitValue = float3(0.0, 0.0, 0.2);
}