Skip to content

Commit

Permalink
instance support available for all backends (#28596)
Browse files Browse the repository at this point in the history
Co-authored-by: aardgoose <angus.sawyer@email.com>
  • Loading branch information
aardgoose and aardgoose authored Jun 10, 2024
1 parent 2ba5c1d commit b9f3f59
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion examples/jsm/nodes/materials/NodeMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class NodeMaterial extends Material {

}

if ( ( object.instanceMatrix && object.instanceMatrix.isInstancedBufferAttribute === true ) && builder.isAvailable( 'instance' ) === true ) {
if ( ( object.instanceMatrix && object.instanceMatrix.isInstancedBufferAttribute === true ) ) {

instance( object ).append();

Expand Down
1 change: 0 additions & 1 deletion examples/jsm/renderers/webgl/nodes/GLSLNodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const precisionLib = {
};

const supports = {
instance: true,
swizzleAssign: true
};

Expand Down
1 change: 0 additions & 1 deletion examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const gpuShaderStageLib = {
};

const supports = {
instance: true,
storageBuffer: true
};

Expand Down

0 comments on commit b9f3f59

Please sign in to comment.