Skip to content

sample points half sphere maybe bugged #1

@soraphis

Description

@soraphis

https://github.com/soraphis/Unity-Post-Processing-Effects/blob/master/Assets/SSAO/SSAO.shader#L86

i think

if( dot(normal, sample) < 0.0f) sample *= -1.0f;

should be:

if( abs(dot(normal, sample)) < 0.0f) sample *= -1.0f;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions