refactor for better readability: cleaner render func, separate shading func
refactor for better readability: cleaner render func, separate shading func

valentingalea/shaderbox,valentingalea/shaderbox,valentingalea/shaderbox,valentingalea/shaderbox