Skip to content

Commit add4bdb

Browse files
committed
nothing works
1 parent f3cffbd commit add4bdb

File tree

8 files changed

+443
-1
lines changed

8 files changed

+443
-1
lines changed

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ dependencies = [
4242
"importlib_resources~=6.0",
4343
"Jinja2~=3.1",
4444
"minecraft-render~=2.0.0a6",
45+
"moderngl[headless]~=5.10",
46+
"moderngl-window~=2.4",
4547
"more_itertools~=10.1",
4648
"networkx~=3.2",
4749
"ordered-set~=4.1",

src/hexdoc/graphics/__init__.py

Whitespace-only changes.

src/hexdoc/graphics/glsl/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#version 330
2+
3+
uniform sampler2DArray texture0;
4+
uniform float layer;
5+
uniform float light;
6+
7+
in vec2 uv;
8+
9+
out vec4 fragColor;
10+
11+
void main() {
12+
vec4 texColor = texture(texture0, vec3(uv, layer));
13+
fragColor = vec4(light * texColor.rgb, texColor.a);
14+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#version 330
2+
3+
uniform mat4 m_proj;
4+
uniform mat4 m_camera;
5+
uniform mat4 m_model;
6+
7+
in vec3 in_position;
8+
in vec2 in_texcoord_0;
9+
10+
out vec2 uv;
11+
12+
void main() {
13+
gl_Position = m_proj * m_camera * m_model * vec4(in_position, 1);
14+
uv = in_texcoord_0;
15+
}

0 commit comments

Comments
 (0)