xash3d-fwgs/ref_vk/shaders/ray.rmiss
Ivan Avdeev c51d593679 rtx: get ray tracing pipeline to draw at least something
on amd gpus it won't draw anything at all unless you have the entire ray tracing pipeline set up fully and correctly:
- have at least rgen, rmiss and rchit shaders
- set up shader groups to reference them
- set up sbt to reference shader groups
it is not enough to just have a single rgen shader operating like a compute shader. amd will have a shader preamble that checks for something and exit early w/o actually running any shader code you wrote

meh
2021-07-06 11:28:24 -07:00

8 lines
167 B
GLSL

#version 460 core
#extension GL_EXT_ray_tracing: require
layout(location = 0) rayPayloadInEXT vec4 ray_result;
void main() {
ray_result = vec4(1., 0., 1., 0.);
}