ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/source.h
Revision: 1.2
Committed: Wed Jun 7 08:35:12 1989 UTC (34 years, 10 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.1: +11 -18 lines
Log Message:
Efficient approximation to direct component with many sources
Glow type changed
Spot type eliminated

File Contents

# User Rev Content
1 greg 1.1 /* Copyright (c) 1986 Regents of the University of California */
2    
3     /* SCCSid "$SunId$ LBL" */
4    
5     /*
6     * source.h - header file for ray tracing sources.
7     *
8     * 8/20/85
9     */
10    
11     #define SDISTANT 01 /* source distant flag */
12     #define SSKIP 02 /* source skip flag */
13    
14     typedef struct {
15     short sflags; /* source flags */
16     FVECT sloc; /* direction or position of source */
17     float ss; /* tangent or disk radius */
18     float ss2; /* domega or projected area */
19 greg 1.2 long ntests, nhits; /* shadow tests and hits */
20 greg 1.1 OBJREC *so; /* source object */
21 greg 1.2 } SRCREC; /* light source */
22 greg 1.1
23 greg 1.2 typedef struct {
24     int sno; /* source number */
25     FVECT dir; /* source direction */
26     float dom; /* domega for source */
27     float brt; /* brightness (for comparison) */
28     COLOR val; /* contribution */
29     } CONTRIB; /* direct contribution */
30 greg 1.1
31 greg 1.2 extern SRCREC *source; /* our source list */
32 greg 1.1 extern int nsources; /* the number of sources */
33    
34 greg 1.2 extern double srcray(); /* ray to source */