BRL-CAD
shade.c File Reference
#include "common.h"
#include <stdio.h>
#include <math.h>
#include "bn.h"
#include "vmath.h"
#include "raytrace.h"
#include "optical.h"
#include "light.h"
#include "plot3.h"
Include dependency graph for shade.c:

Go to the source code of this file.

Functions

void pr_shadework (const char *str, const struct shadework *swp)
 
void shade_inputs (struct application *ap, const struct partition *pp, struct shadework *swp, int want)
 
int viewshade (struct application *ap, const struct partition *pp, struct shadework *swp)
 

Detailed Description

Ray Tracing program, lighting model shader interface.

Notes - The normals on all surfaces point OUT of the solid. The incoming light rays point IN.

Definition in file shade.c.

Function Documentation

void pr_shadework ( const char *  str,
const struct shadework *  swp 
)

Pretty print a shadework structure.

Definition at line 52 of file shade.c.

References BN_CK_TABDATA, bn_pr_tabdata(), bu_log(), bu_printb(), V3ARGS, and VPRINT.

Referenced by scloud_render(), sh_stk_render(), and viewshade().

Here is the call graph for this function: