changes and fixes in uniforms and textures