Updated description and screenshot for instancing example
This commit is contained in:
parent
8e2115a0d4
commit
0463d5b1e3
3 changed files with 2 additions and 2 deletions
|
|
@ -97,9 +97,9 @@ Uses [assimp](https://github.com/assimp/assimp) to load and a mesh from a common
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
## [Mesh instancing](instancing/)
|
## [Mesh instancing](instancing/)
|
||||||
<img src="./screenshots/instancing.png" height="96px" align="right">
|
<img src="./screenshots/instancing.jpg" height="96px" align="right">
|
||||||
|
|
||||||
Shows the use of instancing for rendering the same mesh with differing uniforms with one single draw command. This saves performance if the same mesh has to be rendered multiple times.
|
Shows the use of instancing for rendering many copies of the same mesh using different attributes and textures. A secondary uniform buffer containing instanced data, stored in device local memory, is used to pass instance data to the shader via vertex attributes with a per-instance step rate. The instance data also contains a texture layer index for having different textures for the instanced meshes.
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
## [Multi sampling](multisampling/)
|
## [Multi sampling](multisampling/)
|
||||||
|
|
|
||||||
BIN
screenshots/instancing.jpg
Normal file
BIN
screenshots/instancing.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 273 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 587 KiB |
Loading…
Add table
Add a link
Reference in a new issue