Sunday 1 May 2011

Lighting Improved

I have been busy over the last month completely re-writing the HLSL effect shaders. The new version has improved lighting with 3 directional lights phong specular lighting to make models look shiny and better shadow resolution.

I tried to improve performance which I think I have done but as I have added features I have used up any gains I made.

I have written a lighting form for my editor so I can change all the lighting values and see the effect on the map immediately.




The biggest improvement to the shaders has been removing some artifacts caused by interior faces of models casting shadows on the wrong surfaces.

I have learnt a lot about lighting and some more about modelling. I also know that I have to re-make some of my models to sort out the effect caused by faces sharing vertices.

No comments: