Skip to content

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

@alexr4

Description

@alexr4

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);
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions