finished Metal.cpp and fresnel.h