Skip to content

Commit

Permalink
Update hw instancing docs (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored Jul 19, 2023
1 parent d9a9e6c commit 113b8a2
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ Note that all instances are submitted for rendering by the GPU with no camera fr

## How to use instancing

Enable instancing on a StandardMaterial that you use for rendering:

```javascript
var material = new pc.StandardMaterial();
material.onUpdateShader = function(options) {
options.useInstancing = true;
return options;
};
material.update();
```

Populate a vertex buffer with per instance matrices to provide their world matrices for rendering.

```javascript
Expand Down

0 comments on commit 113b8a2

Please sign in to comment.