Skip to content

Commit

Permalink
WebGPURenderPipelines: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Sep 9, 2020
1 parent 9676f7f commit 29ec65b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/jsm/renderers/webgpu/WebGPURenderPipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class WebGPURenderPipelines {
// pipeline

const primitiveTopology = this._getPrimitiveTopology( object );
const rasterizationState = this._getRasterizationStateDescriptor( object );
const rasterizationState = this._getRasterizationStateDescriptor( material );
const depthCompare = this._getDepthCompare( material );
const colorWriteMask = this._getColorWriteMask( material );

Expand Down Expand Up @@ -532,10 +532,9 @@ class WebGPURenderPipelines {

}

_getRasterizationStateDescriptor( object ) {
_getRasterizationStateDescriptor( material ) {

const descriptor = {};
const material = object.material;

switch ( material.side ) {

Expand Down

0 comments on commit 29ec65b

Please sign in to comment.