Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/api/en/renderers/webgl/WebGLProgram.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ <h3>Vertex shader (conditional):</h3>
attribute vec4 skinWeight;
#endif
</code>
<code>
#ifdef USE_INSTANCING
// Note that modelViewMatrix is not set when rendering an instanced model,
// but can be calculated from viewMatrix * modelMatrix.
//
// Basic Usage:
// gl_Position = projectionMatrix * viewMatrix * modelMatrix * instanceMatrix * vec4(position, 1.0);
attribute mat4 instanceMatrix;
#endif
</code>
</div>

<h3>Fragment shader:</h3>
Expand Down