sabato 20 giugno 2015

Day 8: Cool stuff!

Today i started by modifing my camera to work with the mouse, now it's really really handy, and makes moving around very easy.

Then i modified my instancing batch class to use another attribute, the color.
Before i was passing a new color for each vertex, which is quite useless, now each model has a shared color for all it's vertices.

Then i had a little fun, and to test the performances of the engine i instanced 10.000 cubes on a plane, and i made them move on the y axis with a sin wave.

This is not directly useful for the developement of the engine, but it was nice, you can see the result in the picture below


Nessun commento:

Posta un commento