Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per frame randomized SSAO sampling & debug mode in composite pass #7139

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Nov 25, 2024

CameraFrame exposes public interface to enable debug rendering.

/** @type {''|'scene'|'ssao'|'bloom'|'vignette'}*/
CameraFrame.debug = '';

This has been added to few examples, for example ambient occlusion:
Screenshot 2024-11-25 at 14 31 35

SSAO rendering additionally exposes option to randomize samples each frame. This is useful when used along TAA, where TAA can be used to blur SSAO instead of custom render passes.

/**
* Debug rendering.
*
* @type {''|'scene'|'ssao'|'bloom'|'vignette'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Would null be better than ''?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants