Ray tracing texturing and alpha mapping sample

This commit is contained in:
Sascha Willems 2023-04-09 11:37:44 +02:00
parent 5645c2657f
commit d0ad204606
11 changed files with 49 additions and 8 deletions

View file

@ -1,3 +1,9 @@
/* Copyright (c) 2023, Sascha Willems
*
* SPDX-License-Identifier: MIT
*
*/
#version 460
#extension GL_EXT_ray_tracing : enable
@ -28,5 +34,5 @@ void main()
traceRayEXT(topLevelAS, gl_RayFlagsNoneEXT, 0xff, 0, 0, 0, origin.xyz, tmin, direction.xyz, tmax, 0);
imagexStore(image, ivec2(gl_LaunchIDEXT.xy), vec4(hitValue, 0.0));
imageStore(image, ivec2(gl_LaunchIDEXT.xy), vec4(hitValue, 0.0));
}