rendering images for thesis
This commit is contained in:
parent
6eabd442b1
commit
54e283207b
169 changed files with 7 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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