using System.Collections;
using System.Collections.Generic;
public class Main : MonoBehaviour
Ray ray = new Ray (new Vector3(30,0,0), new Vector3(0,0,1));
Sphere sphere = new Sphere (new Vector3(125,125,10),10,180);
for (int y = 0; y < Constantes.MAX_HEIGHT; y++){
for (int x = 0; x < Constantes.MAX_WIDTH; x++){
imagem += Background.GetColor(x, y) + " ";
void SaveImage(string s){
string nomeArquivo = "roque.ppm";
string head = "P2\n" + Constantes.MAX_HEIGHT + " "
+ Constantes.MAX_WIDTH + "\n255\n";
string finalFile = head + s;
StreamWriter sr = File.CreateText(nomeArquivo);