rendering images for thesis

This commit is contained in:
CDaut 2024-08-31 19:24:57 +02:00
parent 6eabd442b1
commit 54e283207b
Signed by: clara
GPG key ID: 223391B52FAD4463
169 changed files with 7 additions and 6 deletions

View file

@ -42,11 +42,11 @@ void main()
{
//TODO: LOAD FROM BLUE NOISE POINTSET
//const vec2 rayOriginInPix = vec2(gl_LaunchIDEXT.xy) + pointset[gl_LaunchIDEXT.x + WINDOWSIZE * gl_LaunchIDEXT.y].xy;
uint seed = tea(gl_LaunchIDEXT.y * gl_LaunchSizeEXT.x + gl_LaunchIDEXT.x, int(clockARB()));
float x = rnd(seed);
float y = rnd(seed);
const vec2 rayOriginInPix = vec2(gl_LaunchIDEXT.xy) + vec2(x, y);
const vec2 rayOriginInPix = vec2(gl_LaunchIDEXT.xy) + pointset[gl_LaunchIDEXT.x + WINDOWSIZE * gl_LaunchIDEXT.y].xy;
// uint seed = tea(gl_LaunchIDEXT.y * gl_LaunchSizeEXT.x + gl_LaunchIDEXT.x, int(clockARB()));
// float x = rnd(seed);
// float y = rnd(seed);
// const vec2 rayOriginInPix = vec2(gl_LaunchIDEXT.xy) + vec2(x, y);
const vec2 inUV = rayOriginInPix / vec2(gl_LaunchSizeEXT.xy);
vec2 d = inUV * 2.0 - 1.0;