MATERIAL.C File Reference

Go to the source code of this file.

Defines

#define MODULE_MATERIAL
#define FLOOR(x)   ((x) >= 0.0 ? floor(x) : (0.0 - floor(0.0 - (x)) - 1.0))
#define FOURDIV2PI   0.318309886
#define TWODIVPI   0.318309886

Functions

void init_spec (void)
void BumpByCoordinates (imap *Map, short type, long obj, face *f, vector p, vector n)
void BoxMapIntersect (vector d, long *id, double *alpha, double *beta)
void MapMirror (double *R, double *G, double *B, imap *Map, vector p, vector n)
void MapEnvironment (long col, long row, UCHAR *r, UCHAR *g, UCHAR *b, imap *Map)
void MapEnvironmentInDirection (vector dd, double *r, double *g, double *b, imap *Map)
long MapFromProjection (imap *Map, short type, short clear, vector p, double *red, double *green, double *blue)
long MapByCoordinates (imap *Map, long obj, face *f, short type, short clear, vector p, double *red, double *green, double *blue)
long MapTransByCoordinates (imap *Map, short type, long obj, face *f, vector p, double *trans)
long MapTextureByCoordinates (long obj, face *f, vector p, double *alpha, double *beta, double *gamma)
void GetSkyLocation (void)
long PutBackIntersection (long scanline, double d2, UCHAR *Alfa, double *Zground, long *Zglass[], long *ZglassO[], double *Zglassd[], long *Zbuffer, long *Zobject, double *Zdepth, double *Zposn, double *Rsky)
void GetGroundLight (vector p0, double *R, double *G, double *B)
double DepthCueLight (long j, double cc)
void GetPixelLighting (matl *Mat, vector p, vector n, double pdotn, double ddotn, long obj, face *f, double *IdR, double *IdG, double *IdB, double *IsR, double *IsG, double *IsB)
void GetMirrorValues (double *color, vector p, vector din, vector n, int at_o, face *at_f, long trace_reflection_depth, long trace_refraction_depth, long trace_refractive_flag)
void GetSurfaceValue (int obj, face *f, vertex *v, vector p, vector dr, double *r, double *g, double *b, long trace_reflection_depth, long trace_refraction_depth, long refractive_flag)
Renderer Functions
long ShadedScanline (long scanline, double d2, UCHAR *Red, UCHAR *Green, UCHAR *Blue, double *Zground, long Wsky, double Rsky, long *Zglass[], long *ZglassO[], double *Zglassd[], long *Zbuffer, long *Zobject, double *Zdepth, double *Zposn)
 Renders a whole scanline - Calls GetRowPixelValue().
long FastAntiAliasShadedScanline (long scanline, long aaline, double d2, UCHAR *Red, UCHAR *Green, UCHAR *Blue, double *Zground, long Wsky, double Rsky, long *Xbuffer, long *Xobject, long *Zglass[], long *ZglassO[], double *Zglassd[], long *Zbuffer, long *Zobject, double *Zdepth, double *Zposn)
 Renders a whole scanline - Calls GetRowPixelValue().
void GetPixelValue (vector p, vector dinput, vector n, double pdotn, imap *Map, matl *Mat, face *f, long obj, long row, long col, BOOL first_trace, long trace_relection_depth, long trace_refraction_depth, long refractive_flag, double *Red, double *Green, double *Blue)
 The main rendering fuction.
void GetRowPixelValue (long row, long col, imap *Map, matl *Mat, face *f, long obj, vector nn, UCHAR *Red, UCHAR *Green, UCHAR *Blue, double *Zdepth, UCHAR *ZobjChar)
 Renders a pixel on a scanline - Calls GetPixelValue().

Variables

short mirror_ground
double Rip_Freq
double spec_pow [16][max_spec+1]
double spec_gro [max_spec+1]


Define Documentation

#define MODULE_MATERIAL

Definition at line 3 of file MATERIAL.C.

#define FLOOR ( x   )     ((x) >= 0.0 ? floor(x) : (0.0 - floor(0.0 - (x)) - 1.0))

Definition at line 16 of file MATERIAL.C.

Referenced by _ExternalTextureProcedure(), and GetGroundLight().

#define FOURDIV2PI   0.318309886

#define TWODIVPI   0.318309886


Variable Documentation

Definition at line 28 of file REFLECT.C.

Referenced by Free_Mirror_On_Ground(), and Mirror_In_Ground().

double Rip_Freq

Definition at line 40 of file TEXTURES.C.

Referenced by GetInternalTexture(), and init_ripples().

double spec_pow[16][max_spec+1]

Definition at line 32 of file MATERIAL.C.

Referenced by GetPixelLighting(), and init_spec().

double spec_gro[max_spec+1]

Definition at line 32 of file MATERIAL.C.

Referenced by GetGroundLight(), and init_spec().


Generated on Sun Apr 27 14:20:16 2014 for OpenFX by  doxygen 1.5.6