saving working on key entry. going to do pallette now
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user