Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ bool initCorner(SplatSource source, SplatCenter center, out SplatCorner corner)
float lambda2 = max(mid - radius, 0.1);

// Use the smaller viewport dimension to limit the kernel size relative to the screen resolution.
float vmin = min(viewport.x, viewport.y);
float vmin = min(1024.0, min(viewport.x, viewport.y));

float l1 = 2.0 * min(sqrt(2.0 * lambda1), vmin);
float l2 = 2.0 * min(sqrt(2.0 * lambda2), vmin);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn initCorner(source: ptr<function, SplatSource>, center: ptr<function, SplatCen
let lambda2 = max(mid - radius, 0.1);

// Use the smaller viewport dimension to limit the kernel size relative to the screen resolution.
let vmin = min(uniform.viewport.x, uniform.viewport.y);
let vmin = min(1024.0, min(uniform.viewport.x, uniform.viewport.y));

let l1 = 2.0 * min(sqrt(2.0 * lambda1), vmin);
let l2 = 2.0 * min(sqrt(2.0 * lambda2), vmin);
Expand Down