diff options
author | HampusM <hampus@hampusmat.com> | 2023-11-02 20:22:33 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-11-02 20:22:33 +0100 |
commit | 9aafb51e0be1720019db1c3d0a294ce9a42653df (patch) | |
tree | 40881ff26bff5a928280223d8aced87e1370d63b /engine/fragment-texture.glsl | |
parent | f2c54d47e6b61198520824117339aaa21c32accd (diff) |
feat(engine): add texturing
Diffstat (limited to 'engine/fragment-texture.glsl')
-rw-r--r-- | engine/fragment-texture.glsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/fragment-texture.glsl b/engine/fragment-texture.glsl new file mode 100644 index 0000000..a4d378b --- /dev/null +++ b/engine/fragment-texture.glsl @@ -0,0 +1,11 @@ +#version 330 core +out vec4 FragColor; + +in vec2 in_texture_coords; + +uniform sampler2D input_texture; + +void main() +{ + FragColor = texture(input_texture, in_texture_coords); +} |