mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
simplify shader grid drawing and add option to use a texture for the grid
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec2 texCoords;
|
||||
|
||||
uniform sampler2D aTexture;
|
||||
|
||||
void main() {
|
||||
FragColor = vec4(240.f/255.f, 235.f/255.f, 227.f/255.f, 1.0);
|
||||
FragColor = texture(aTexture, texCoords);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user