Fix sqrt(int) in diffuseenvmap