Skip to content

displacementMap ignoring offset #7826

@kishalmi

Description

@kishalmi

the phong (and most likely others) vertex shader uses uv instead of vUv
resulting in texture.offset having no effect.
suggestion to use vUv here.

#ifdef USE_DISPLACEMENTMAP

    transformed += normal * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );

#endif

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