26#ifndef OPTICAL_SHADEWORK_H
27#define OPTICAL_SHADEWORK_H
Header file for the BRL-CAD common definitions.
void pr_shadework(const char *str, const struct shadework *swp)
double fastf_t
fastest 64-bit (or larger) floating point type
Information about where a ray hits the surface.
fastf_t sw_extinction
extinction coeff, mm^-1
fastf_t sw_tolight[3 *SW_NLIGHTS]
light directions
int sw_inputs
fields from mf_inputs actually filled
struct light_specific * sw_visible[SW_NLIGHTS]
visibility flags/ptrs
struct seg * sw_segs
segs which made partition
fastf_t sw_lightfract[SW_NLIGHTS]
% light visible
struct hit sw_hit
ray hit (dist, point, normal)
int sw_frame
# of current frame
fastf_t sw_refrac_index
refactive index
fastf_t sw_transmit
0.0 -> 1.0
fastf_t sw_temperature
color temperature
int sw_xmitonly
flag: need sw_transmit only
fastf_t sw_color[3]
shaded color
fastf_t sw_intensity[3 *SW_NLIGHTS]
light intensities
fastf_t sw_basecolor[3]
base color
fastf_t sw_reflect
0.0 -> 1.0