Skip to content

Commit c654ba7

Browse files
authored
WebGPU: fix frontFace (#23965)
1 parent 6e51472 commit c654ba7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/jsm/renderers/webgpu/WebGPURenderPipeline.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ class WebGPURenderPipeline {
448448
switch ( material.side ) {
449449

450450
case FrontSide:
451-
descriptor.frontFace = GPUFrontFace.CCW;
452-
descriptor.cullMode = GPUCullMode.Back;
451+
descriptor.frontFace = GPUFrontFace.CW;
452+
descriptor.cullMode = GPUCullMode.Front;
453453
break;
454454

455455
case BackSide:
@@ -458,7 +458,7 @@ class WebGPURenderPipeline {
458458
break;
459459

460460
case DoubleSide:
461-
descriptor.frontFace = GPUFrontFace.CCW;
461+
descriptor.frontFace = GPUFrontFace.CW;
462462
descriptor.cullMode = GPUCullMode.None;
463463
break;
464464

0 commit comments

Comments
 (0)