mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:10:04 +00:00
Add geo line shaders
This commit is contained in:
parent
bf6b3e3601
commit
bee167764a
4 changed files with 60 additions and 1 deletions
16
scwx-qt/gl/texture2d.frag
Normal file
16
scwx-qt/gl/texture2d.frag
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#version 330 core
|
||||
|
||||
// Lower the default precision to medium
|
||||
precision mediump float;
|
||||
|
||||
uniform sampler2D uTexture;
|
||||
|
||||
flat in vec2 texCoord;
|
||||
flat in vec4 modulate;
|
||||
|
||||
layout (location = 0) out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = texture(uTexture, texCoord) * modulate;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue