rendering images for thesis
This commit is contained in:
parent
6eabd442b1
commit
54e283207b
169 changed files with 7 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue