77 bool is_sprite ;
88 bool is_solid ;
99 bool is_occluded ;
10- bool has_shadow ;
10+ bool is_shadowed ;
1111 int indices [6 ];
1212 light_t light ;
1313}
@@ -19,7 +19,7 @@ static const BLOCKS[BLOCK_COUNT] =
1919 .is_sprite = false,
2020 .is_solid = true,
2121 .is_occluded = true,
22- .has_shadow = true,
22+ .is_shadowed = true,
2323 .indices = {2 , 2 , 2 , 2 , 1 , 3 },
2424 .light = {0 , 0 , 0 , 0 },
2525 },
@@ -29,7 +29,7 @@ static const BLOCKS[BLOCK_COUNT] =
2929 .is_sprite = false,
3030 .is_solid = true,
3131 .is_occluded = true,
32- .has_shadow = true,
32+ .is_shadowed = true,
3333 .indices = {3 , 3 , 3 , 3 , 3 , 3 },
3434 .light = {0 , 0 , 0 , 0 },
3535 },
@@ -39,7 +39,7 @@ static const BLOCKS[BLOCK_COUNT] =
3939 .is_sprite = false,
4040 .is_solid = true,
4141 .is_occluded = true,
42- .has_shadow = true,
42+ .is_shadowed = true,
4343 .indices = {5 , 5 , 5 , 5 , 5 , 5 },
4444 .light = {0 , 0 , 0 , 0 },
4545 },
@@ -49,7 +49,7 @@ static const BLOCKS[BLOCK_COUNT] =
4949 .is_sprite = false,
5050 .is_solid = true,
5151 .is_occluded = true,
52- .has_shadow = true,
52+ .is_shadowed = true,
5353 .indices = {6 , 6 , 6 , 6 , 6 , 6 },
5454 .light = {0 , 0 , 0 , 0 },
5555 },
@@ -59,7 +59,7 @@ static const BLOCKS[BLOCK_COUNT] =
5959 .is_sprite = false,
6060 .is_solid = true,
6161 .is_occluded = true,
62- .has_shadow = true,
62+ .is_shadowed = true,
6363 .indices = {4 , 4 , 4 , 4 , 4 , 4 },
6464 .light = {0 , 0 , 0 , 0 },
6565 },
@@ -69,7 +69,7 @@ static const BLOCKS[BLOCK_COUNT] =
6969 .is_sprite = false,
7070 .is_solid = true,
7171 .is_occluded = true,
72- .has_shadow = true,
72+ .is_shadowed = true,
7373 .indices = {8 , 8 , 8 , 8 , 7 , 7 },
7474 .light = {0 , 0 , 0 , 0 },
7575 },
@@ -79,7 +79,7 @@ static const BLOCKS[BLOCK_COUNT] =
7979 .is_sprite = false,
8080 .is_solid = true,
8181 .is_occluded = true,
82- .has_shadow = true,
82+ .is_shadowed = true,
8383 .indices = {10 , 10 , 10 , 10 , 10 , 10 },
8484 .light = {0 , 0 , 0 , 0 },
8585 },
@@ -89,7 +89,7 @@ static const BLOCKS[BLOCK_COUNT] =
8989 .is_sprite = false,
9090 .is_solid = true,
9191 .is_occluded = false,
92- .has_shadow = true,
92+ .is_shadowed = true,
9393 .indices = {9 , 9 , 9 , 9 , 9 , 9 },
9494 .light = {0 , 0 , 0 , 0 },
9595 },
@@ -99,7 +99,7 @@ static const BLOCKS[BLOCK_COUNT] =
9999 .is_sprite = true,
100100 .is_solid = false,
101101 .is_occluded = false,
102- .has_shadow = false,
102+ .is_shadowed = false,
103103 .indices = {15 , 15 , 15 , 15 , 15 , 15 },
104104 .light = {0 , 0 , 0 , 0 },
105105 },
@@ -109,7 +109,7 @@ static const BLOCKS[BLOCK_COUNT] =
109109 .is_sprite = true,
110110 .is_solid = false,
111111 .is_occluded = false,
112- .has_shadow = false,
112+ .is_shadowed = false,
113113 .indices = {13 , 13 , 13 , 13 , 13 , 13 },
114114 .light = {0 , 0 , 0 , 0 },
115115 },
@@ -119,7 +119,7 @@ static const BLOCKS[BLOCK_COUNT] =
119119 .is_sprite = true,
120120 .is_solid = false,
121121 .is_occluded = false,
122- .has_shadow = false,
122+ .is_shadowed = false,
123123 .indices = {12 , 12 , 12 , 12 , 12 , 12 },
124124 .light = {0 , 0 , 0 , 0 },
125125 },
@@ -129,7 +129,7 @@ static const BLOCKS[BLOCK_COUNT] =
129129 .is_sprite = true,
130130 .is_solid = false,
131131 .is_occluded = false,
132- .has_shadow = false,
132+ .is_shadowed = false,
133133 .indices = {11 , 11 , 11 , 11 , 11 , 11 },
134134 .light = {0 , 0 , 0 , 0 },
135135 },
@@ -139,7 +139,7 @@ static const BLOCKS[BLOCK_COUNT] =
139139 .is_sprite = true,
140140 .is_solid = false,
141141 .is_occluded = false,
142- .has_shadow = false,
142+ .is_shadowed = false,
143143 .indices = {14 , 14 , 14 , 14 , 14 , 14 },
144144 .light = {0 , 0 , 0 , 0 },
145145 },
@@ -149,7 +149,7 @@ static const BLOCKS[BLOCK_COUNT] =
149149 .is_sprite = false,
150150 .is_solid = false,
151151 .is_occluded = false,
152- .has_shadow = false,
152+ .is_shadowed = false,
153153 .indices = {16 , 16 , 16 , 16 , 16 , 16 },
154154 .light = {0 , 0 , 0 , 0 },
155155 },
@@ -159,8 +159,8 @@ static const BLOCKS[BLOCK_COUNT] =
159159 .is_sprite = true,
160160 .is_solid = false,
161161 .is_occluded = false,
162+ .is_shadowed = false,
162163 .indices = {17 , 17 , 17 , 17 , 17 , 17 },
163- .has_shadow = false,
164164 .light = {255 , 255 , 0 , 10 },
165165 },
166166};
@@ -185,9 +185,9 @@ bool block_is_occluded(block_t block)
185185 return BLOCKS [block ].is_occluded ;
186186}
187187
188- bool block_has_shadow (block_t block )
188+ bool block_is_shadowed (block_t block )
189189{
190- return BLOCKS [block ].has_shadow ;
190+ return BLOCKS [block ].is_shadowed ;
191191}
192192
193193int block_get_index (block_t block , direction_t direction )
0 commit comments