Monday, August 3, 2015

Skybox Works! Added Lighting and Noticed Needed Optimization

Good to know the skybox works! That was fixed by applying the same model I loaded for the player spheres and texturing that with the skybox shader instead of creating a sphere from scratch. Worked like a charm.

However, if I wanted anything fancy in the way of visuals, I would need to create some lighting first. Today was just a simple implementation of direction-based ambient/diffuse/specular lighting, though I opted out the specular since the balls weren't that shiny nor had specific materials to guide their lighting components. If it's necessary, I'll certainly add it down the line.

I did notice another problem, though; the Recast navigation mesh is taking an awful long while to create in the initialization. Perhaps it's good to spend tomorrow working out the profiler and see what the matter is with it.

All in all, it's looking a bit nicer than before!


No comments:

Post a Comment