Collision & Engine refactor
This commit is contained in:
parent
f135d99d74
commit
6b51c9b680
261 changed files with 5439 additions and 185169 deletions
21
resources/EngineResources/shaders/Terrain_vertex.glsl
Normal file
21
resources/EngineResources/shaders/Terrain_vertex.glsl
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#version 450
|
||||
|
||||
layout(binding = 0) uniform UniformBufferObject {
|
||||
mat4 model;
|
||||
mat4 view;
|
||||
mat4 proj;
|
||||
} ubo;
|
||||
|
||||
layout(location = 0) in vec3 inPosition;
|
||||
layout(location = 1) in vec4 inMaterialWeights;
|
||||
|
||||
layout(location = 0) out vec3 fragPosition;
|
||||
layout(location = 1) out vec4 fragWeights;
|
||||
layout(location = 2) out vec2 fragUV;
|
||||
|
||||
void main() {
|
||||
gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 1.0);
|
||||
fragPosition = inPosition;
|
||||
fragWeights = inMaterialWeights;
|
||||
fragUV = inPosition.xz * 0.1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue