Skip to content

WebGPU: Negative scale inverts front-face direction #31764

@Bug-Reaper

Description

@Bug-Reaper

Description

On webGPU only (not the webGL2 fallback) the following results in the front-face direction inverting:

tubeTop.scale.set(newXY.y, rawXY.x * 2, newXY.y)
tubeBottom.scale.set(newXY.y, -rawXY.x * 2, newXY.y)

(WebGPU) - Bugged?

Image

(WebGL2 Fallback) - Normal

Image

I'm keen to get a PR in here if possible, appreciated if someone wants to point me generally where to hunt for webGPU mesh-scale / face-direction logic.

Reproduction steps

https://jsfiddle.net/vjgan6xh/1/

Code

https://jsfiddle.net/vjgan6xh/1/

Live example

https://jsfiddle.net/vjgan6xh/1/

Screenshots

No response

Version

^0.179.1

Device

Desktop

Browser

Chrome

OS

MacOS, Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions