added BVHRefiner functionality

Wait for texture till it is completely loaded to gpu before rendering
and bug fixing in position calculation of the quads
added functionality to BVHRefiner on mode '3d'

Optimized data upload to gpu without black flare