Skip to content

Halfvec computation #1

@brainsandwich

Description

@brainsandwich

Hi,
First of all, thanks for sharing your ggx implementation !

There seems to be an error in your halfvec computation.
You've written it as the substraction of the view by the lightdir (vec3 H = normalize(L - V);) but it should the addition of the two.

Regards

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