summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-08-18 14:42:26 -0500
committerSubv <subv2112@gmail.com>2018-08-18 14:42:26 -0500
commite0f66c1fbfa7874df9970c2d269bd61e05758309 (patch)
treeadeffbdf54c36072ed820d56b9d55c073da3bd08 /src/common
parent6eba539f4a945500c6e5a4395272184fff445698 (diff)
GLRasterizer: Implemented instanced vertex arrays.
Before each draw call, for every enabled vertex array configured as instanced, we take the current instance id and divide it by its configured divisor, then we multiply that by the corresponding stride and increment the start address by the resulting amount. This way we can simulate the vertex array being incremented once per instance without actually using OpenGL's instancing functions.
Diffstat (limited to 'src/common')
0 files changed, 0 insertions, 0 deletions