diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-26 13:40:31 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-26 13:40:31 +1000 |
commit | e0a047ac1e2cf18c3b0f23f31f869eeda767503e (patch) | |
tree | a14e3eccec6e845778798fe24acc4c85f8e4da4b /assets/shaders/terrain.frag | |
parent | b28de1c7c87683b0645368f5393734f1db4ffd74 (diff) |
try getting glfw passthrough and egui to work
Diffstat (limited to 'assets/shaders/terrain.frag')
-rw-r--r-- | assets/shaders/terrain.frag | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/shaders/terrain.frag b/assets/shaders/terrain.frag index 739ff83..0cc76c8 100644 --- a/assets/shaders/terrain.frag +++ b/assets/shaders/terrain.frag @@ -3,7 +3,11 @@ out vec4 FragColor; in vec4 Color; +in vec2 TexCoord; + +uniform sampler2D TextureSlot1; void main() { - FragColor = Color; + vec4 tex_color = texture(TextureSlot1, TexCoord); + FragColor = Color * tex_color; }
\ No newline at end of file |