mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 23:09:40 +01:00
c51d593679
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
8 lines
167 B
GLSL
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.);
|
|
} |