Skip to content

Commit

Permalink
WebGPU: fix frontFace (mrdoob#23965)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored and abernier committed Sep 16, 2022
1 parent 037558c commit 924d841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/jsm/renderers/webgpu/WebGPURenderPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ class WebGPURenderPipeline {
switch ( material.side ) {

case FrontSide:
descriptor.frontFace = GPUFrontFace.CCW;
descriptor.cullMode = GPUCullMode.Back;
descriptor.frontFace = GPUFrontFace.CW;
descriptor.cullMode = GPUCullMode.Front;
break;

case BackSide:
Expand All @@ -458,7 +458,7 @@ class WebGPURenderPipeline {
break;

case DoubleSide:
descriptor.frontFace = GPUFrontFace.CCW;
descriptor.frontFace = GPUFrontFace.CW;
descriptor.cullMode = GPUCullMode.None;
break;

Expand Down

0 comments on commit 924d841

Please sign in to comment.