mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
Add threshold geometry shader, refactor vertex and fragment shaders
This commit is contained in:
parent
5e1b1a5ba6
commit
69f93d6faf
9 changed files with 83 additions and 14 deletions
|
|
@ -6,11 +6,11 @@ precision mediump float;
|
|||
uniform sampler2D uTexture;
|
||||
|
||||
smooth in vec2 texCoord;
|
||||
flat in vec4 modulate;
|
||||
smooth in vec4 color;
|
||||
|
||||
layout (location = 0) out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = texture(uTexture, texCoord) * modulate;
|
||||
fragColor = texture(uTexture, texCoord) * color;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue