saving working on key entry. going to do pallette now

This commit is contained in:
2019-08-04 19:48:34 -07:00
parent a91e071909
commit cce893a0c8
4 changed files with 96 additions and 177 deletions

View File

@@ -5,10 +5,12 @@ layout(set = 0, binding = 0) uniform sampler2D tex;
layout(set = 0, binding = 1, rgba32ui) readonly uniform uimage2D img;
void main() {
ivec2 size = ivec2(gl_FragCoord.x, gl_FragCoord.y);
ivec2 pos = ivec2(gl_FragCoord.x, gl_FragCoord.y);
f_color = imageLoad(img, size) / (255.0);
f_color = imageLoad(img, ivec2(pos)) / (255.0);
float gamma = 0.5;
f_color.rgb = pow(f_color.rgb, vec3(1.0/gamma));
// f_color = texture(tex, tex_coords);
}