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

SSRT doesn't support background color of the camera #5

Open
alexr4 opened this issue May 13, 2021 · 0 comments
Open

SSRT doesn't support background color of the camera #5

alexr4 opened this issue May 13, 2021 · 0 comments

Comments

@alexr4
Copy link

alexr4 commented May 13, 2021

First thing first, your work on this repo is amazing and gives great results.

I've noticed something, when you want to use a background color for the camera, the SSRT removes it and replace it with a black color.
This seems to be done in the GenerateCommandBuffers() function here :

void GenerateCommandBuffers(){
    ...
    clearBuffer.ClearRenderTarget(false, true, Color.black);
    ...

I've managed to pass the color of the camera by replacing this line by :

void GenerateCommandBuffers(){
    ...
    clearBuffer.ClearRenderTarget(false, true, Camera.main.backgroundColor);
    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant