Skip to content

Conversation

@JMS55
Copy link
Contributor

@JMS55 JMS55 commented Nov 27, 2025

  • Search for a spatial neighbor up to 5 times for ReSTIR instead of just once.
  • Bump RAY_T_MIN to 0.001. Prevents artifacts and doesn't really cause more self intersections.
  • Re-calculate world cache cell_size after jittering the query position to prevent creating extra cells at the wrong LOD for a given position.
  • Prevent the unlikely event of something checksumming to 0, which is reserved for empty cells.

@JMS55 JMS55 requested review from SparkyPotato and atlv24 November 27, 2025 04:48
@JMS55 JMS55 added this to the 0.18 milestone Nov 27, 2025
@JMS55 JMS55 added A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward C-Refinement Improves output quality, without fixing a clear bug or adding new functionality. labels Nov 27, 2025
}

return NeighborInfo(spatial_reservoir, spatial_surface.world_position, spatial_surface.world_normal, spatial_diffuse_brdf);
return NeighborInfo(empty_reservoir(), world_position, world_normal, vec3(0.0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this have to be a real position/normal?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure tbh. Better safe than sorry I feel.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure tbh. Better safe than sorry I feel.

@JMS55 JMS55 requested a review from SparkyPotato November 27, 2025 15:11
@JMS55 JMS55 marked this pull request as ready for review November 29, 2025 02:39
@JMS55 JMS55 requested a review from IceSentry November 29, 2025 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Refinement Improves output quality, without fixing a clear bug or adding new functionality. S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants