Skip to content

Commit

Permalink
WebGPURenderer: CCW FrontFace as default (#26807)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Sep 19, 2023
1 parent cf340b9 commit 85f9f28
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/jsm/renderers/webgpu/utils/WebGPUPipelineUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,17 +466,17 @@ class WebGPUPipelineUtils {
switch ( material.side ) {

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

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

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

Expand Down

0 comments on commit 85f9f28

Please sign in to comment.