Skip to content

SSAO的半球采样方法 #108

@shawn0326

Description

@shawn0326

var phi = halton(i + offset, 2) * (hemisphere ? 1 : 2) * Math.PI;

这里phi代表的是方位角吧,如果半球采样的话,theta 最大是 Math.PI,phi最大应该始终是2 * Math.PI。
另外,参考babylon的实现,建议处理一下theta角,避免因过于接近水平面而出现z-fight

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