Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91121898
otspecial.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 8, 03:30
Size
804 B
Mime Type
text/x-c
Expires
Sun, Nov 10, 03:30 (2 d)
Engine
blob
Format
Raw Data
Handle
22200779
Attached To
R10977 RADIANCE Photon Map
otspecial.h
View Options
/* RCSid $Id: otspecial.h,v 2.10 2019/04/18 22:37:36 greg Exp $ */
/*
* Special type flags for objects used in rendering.
* Depends on definitions in otypes.h
*/
#ifndef _RAD_OTSPECIAL_H_
#define _RAD_OTSPECIAL_H_
#ifdef __cplusplus
extern
"C"
{
#endif
/* flag for nominally transparent materials */
#define T_TRANSP T_SP1
/* flag for completely opaque materials */
#define T_OPAQUE T_SP2
#define istransp(t) (ofun[t].flags & T_TRANSP)
#define isopaque(t) (ofun[t].flags & T_OPAQUE)
/* test if we have a BSDF proxy surface */
#define isBSDFproxy(m) (((m)->otype == MAT_BSDF) & ((m)->oargs.nsargs > 0) &&\
strcmp((m)->oargs.sarg[0], "0"))
/* defined in initotypes.c */
extern
OBJREC
*
findmaterial
(
OBJREC
*
o
);
#ifdef __cplusplus
}
#endif
#endif
/* _RAD_OTSPECIAL_H_ */
Event Timeline
Log In to Comment