feat(app): render static meshes from Holtburg LandBlockInfo
This commit is contained in:
parent
cefc689ba8
commit
1375780e14
4 changed files with 232 additions and 0 deletions
9
src/AcDream.App/Rendering/Shaders/mesh.frag
Normal file
9
src/AcDream.App/Rendering/Shaders/mesh.frag
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#version 430 core
|
||||
in vec2 vTex;
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform sampler2D uDiffuse;
|
||||
|
||||
void main() {
|
||||
fragColor = texture(uDiffuse, vTex);
|
||||
}
|
||||
15
src/AcDream.App/Rendering/Shaders/mesh.vert
Normal file
15
src/AcDream.App/Rendering/Shaders/mesh.vert
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#version 430 core
|
||||
layout(location = 0) in vec3 aPos;
|
||||
layout(location = 1) in vec3 aNormal;
|
||||
layout(location = 2) in vec2 aTex;
|
||||
|
||||
uniform mat4 uModel;
|
||||
uniform mat4 uView;
|
||||
uniform mat4 uProjection;
|
||||
|
||||
out vec2 vTex;
|
||||
|
||||
void main() {
|
||||
vTex = aTex;
|
||||
gl_Position = uProjection * uView * uModel * vec4(aPos, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue