Skip to content

WebGPU environment map shading differs from WebGL in WebGPURenderer #32870

@TobiasNoell

Description

@TobiasNoell

Description

There are significant differences in WebGPU vs. WebGL environment map shading in WebGPURenderer when using a MeshPhysicalNodeMaterial with a normalNode that is served by a THREE.DataTexture and a roughnessNode of 1.

WebGL shading is the correct one that considers the normals, WebGPU shading seems to ignore those completely.

WebGL: (forceWebGL: true)
Image

WebGPU: (forceWebGL: false)
Image

Reproduction steps

  1. Open attached fiddle on a device that supports WebGPU
  2. Normals are ignored during shading
  3. Toggle forceWebGL to true
  4. Normals are considered during shading

Code

See attached fiddle

Live example

Screenshots

No response

Version

r182

Device

Desktop

Browser

Chrome

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions