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

@ -162,7 +162,7 @@ int main(int argc, char** argv)
// Creation of the example
//FIXME: HERE WE CAN LOAD THE SCENE
std::cout << "Using pointset " << argv[1] << std::endl;
helloVk.loadScene(nvh::findFile("media/scenes/grid.gltf", defaultSearchPaths, true), argv[1]);
helloVk.loadScene(nvh::findFile("media/scenes/lumberyard.gltf", defaultSearchPaths, true), argv[1]);
// Setup camera
CameraManip.setWindowSize(SAMPLE_WIDTH, SAMPLE_HEIGHT);

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;