ftp.nice.ch/pub/next/graphics/3d/Raytracers.N.bs.tar.gz#/raytracers/ohta/src/bg.c

This is bg.c in view mode; [Download] [Up]

#include "ray.h"

/*ARGSUSED*/
struct color bgcolor(r)
struct ray r;
{struct color c;
	if(r.l.y>0)
		c.r=c.g=c.b=0.2;
	else
		c.r=c.g=c.b=0.2-0.8*r.l.y;
	return c;
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.