float emr, emg, emb;
float roughness;
float opacity;
+ int metallic;
float xform[16], inv_xform[16];
struct cylinder {
struct object ob;
- float rad;
+ float rad, height;
};
struct plane {
float d;
};
+struct box {
+ struct object ob;
+ float xsz, ysz, zsz;
+};
+
struct csgop {
struct object ob;
csg_object *a, *b;
struct sphere sph;
struct cylinder cyl;
struct plane plane;
+ struct box box;
struct csgop un, isect, sub;
};
struct camera {
float x, y, z;
float tx, ty, tz;
+ float ux, uy, uz;
float fov;
+
+ float xform[16];
};
+int csg_dbg_pixel;
+
#endif /* CSGIMPL_H_ */