Browse Source

WebGPURenderPipelines: Clean up.

Mugen87 4 years ago
parent
commit
29ec65b522
1 changed files with 2 additions and 3 deletions
  1. 2 3
      examples/jsm/renderers/webgpu/WebGPURenderPipelines.js

+ 2 - 3
examples/jsm/renderers/webgpu/WebGPURenderPipelines.js

@@ -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 );
 
@@ -532,10 +532,9 @@ class WebGPURenderPipelines {
 
 	}
 
-	_getRasterizationStateDescriptor( object ) {
+	_getRasterizationStateDescriptor( material ) {
 
 		const descriptor = {};
-		const material = object.material;
 
 		switch ( material.side ) {