Skip to content

eye dir #2

@mattdesl

Description

@mattdesl

There is a mistake somewhere with how I'm using the eye dir.

Perturb needs it negative:

vec3 N = perturb(normalMap, normal, -V, vUv);

And the others need it positive:

//diffuse term
vec3 diffuse = light.color * computeDiffuse(L, V, N, roughness, albedo) * falloff;

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