File size: 1,463 Bytes
8ebbcd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# in the end, it'd be nice to have it so that liquids fill up the whole block when they have a block above them
# this would avoid the problems this solution has

transparent = True
is_cube = True
glass = True

colliders = []

vertex_positions = [
	[ 0.500,  0.375,  0.500,   0.500, -0.625,  0.500,   0.500, -0.625, -0.500,   0.500,  0.375, -0.500], # right
	[-0.500,  0.375, -0.500,  -0.500, -0.625, -0.500,  -0.500, -0.625,  0.500,  -0.500,  0.375,  0.500], # left
	[ 0.500,  0.375,  0.500,   0.500,  0.375, -0.500,  -0.500,  0.375, -0.500,  -0.500,  0.375,  0.500], # top
	[-0.500, -0.625,  0.500,  -0.500, -0.625, -0.500,   0.500, -0.625, -0.500,   0.500, -0.625,  0.500], # bottom
	[-0.500,  0.375,  0.500,  -0.500, -0.625,  0.500,   0.500, -0.625,  0.500,   0.500,  0.375,  0.500], # front
	[ 0.500,  0.375, -0.500,   0.500, -0.625, -0.500,  -0.500, -0.625, -0.500,  -0.500,  0.375, -0.500], # back
]

tex_coords = [
	[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
	[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
	[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
	[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
	[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
	[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
]

shading_values = [
	[0.6, 0.6, 0.6, 0.6],
	[0.6, 0.6, 0.6, 0.6],
	[1.0, 1.0, 1.0, 1.0],
	[0.4, 0.4, 0.4, 0.4],
	[0.8, 0.8, 0.8, 0.8],
	[0.8, 0.8, 0.8, 0.8],
]