Generating viewing ray and basic ray-sphere intersection full with bugs :D