[svn r182] Oups, the PGM output for the raytracer demo was borked.

This commit is contained in:
Tomas Lindquist Olsen
2008-05-06 00:03:55 +02:00
parent 2afd09b9e1
commit 4ff2afa9a6

View File

@@ -113,7 +113,7 @@ void main(string[] args) {
n = (args.length==3 ? args[2].atoi() : 512), ss = 4;
auto light = Vec(-1, -3, 2).unitise();
auto s=create(level, Vec(0, -1, 0), 1);
printf("P5\n%d %d\n255", n,n);
printf("P5\n%d %d\n255\n", n,n);
for (int y=n-1; y>=0; --y)
for (int x=0; x<n; ++x) {
double g=0;