mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
feat(render): add model loading and rendering pipeline
This commit is contained in:
15
assets/shaders/model_frag.glsl
Normal file
15
assets/shaders/model_frag.glsl
Normal file
@@ -0,0 +1,15 @@
|
||||
#version 460
|
||||
|
||||
in vec2 tc;
|
||||
in vec3 normal;
|
||||
in vec3 vert_pos;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
layout (binding = 0) uniform sampler2D samp;
|
||||
|
||||
|
||||
void main() {
|
||||
color = texture(samp, tc);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user