filename | src/pvr2/scene.h |
changeset | 863:a5e5310061e2 |
prev | 847:2089244671d2 |
next | 878:c498ba66e851 |
author | nkeynes |
date | Sun Sep 28 01:09:51 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Initial shadow volume implementation for opaque polygons (stencil isn't quite right, but we get some kind of shadows now) |
file | annotate | diff | log | raw |
1.1 --- a/src/pvr2/scene.h Sun Sep 07 04:23:49 2008 +00001.2 +++ b/src/pvr2/scene.h Sun Sep 28 01:09:51 2008 +00001.3 @@ -31,6 +31,9 @@1.4 SORT_ALWAYS = 21.5 } tile_sort_mode_t;1.7 +typedef enum { SHADOW_NONE=0, SHADOW_CHEAP=1, SHADOW_FULL=2 } shadow_mode_t;1.8 +1.9 +1.10 struct vertex_struct {1.11 float u,v;1.12 float x,y,z;1.13 @@ -120,12 +123,10 @@1.14 * render the scene */1.15 uint32_t buffer_width, buffer_height;1.17 - /** True if modifier volumes use the two-parameter form, False if they1.18 - * use the cheap-shadow option.1.19 - */1.20 - gboolean full_shadow;1.21 /** Specifies the translucency auto-sort mode for the scene */1.22 tile_sort_mode_t sort_mode;1.23 +1.24 + shadow_mode_t shadow_mode;1.26 float fog_lut_colour[4];1.27 float fog_vert_colour[4];
.