datatatatata

This commit is contained in:
CDaut 2024-08-15 23:11:26 +02:00
parent 351e90b541
commit 096679b347
Signed by: clara
GPG key ID: 223391B52FAD4463
1458 changed files with 1038826 additions and 77 deletions

View file

@ -39,8 +39,8 @@ layout(push_constant) uniform _PushConstantRay { PushConstantRay pcRay; };
void main()
{
/*
const vec2 rayOriginInPix = vec2(gl_LaunchIDEXT.xy) + pointset[255].xy;
const vec2 rayOriginInPix = vec2(gl_LaunchIDEXT.xy) + pointset[gl_LaunchIDEXT.x + WINDOWSIZE * gl_LaunchIDEXT.y].xy;
const vec2 inUV = rayOriginInPix / vec2(gl_LaunchSizeEXT.xy);
vec2 d = inUV * 2.0 - 1.0;
@ -64,6 +64,6 @@ void main()
tMax, // ray max range
0// payload (location = 0)
);
*/
imageStore(image, ivec2(gl_LaunchIDEXT.xy), vec4(pointset[gl_LaunchIDEXT.x + WINDOWSIZE * gl_LaunchIDEXT.y].xy, 0.f, 1.0));
imageStore(image, ivec2(gl_LaunchIDEXT.xy), vec4(prd.hitValue, 1.0));
}