2019-03-28 04:53:15 +00:00
|
|
|
#version 300 es
|
2021-08-11 10:41:56 +00:00
|
|
|
precision mediump float;
|
2019-03-28 04:53:15 +00:00
|
|
|
|
2021-08-09 09:15:42 +00:00
|
|
|
#include "color_blind.h"
|
|
|
|
|
2021-08-11 10:41:56 +00:00
|
|
|
in vec2 uv;
|
|
|
|
out vec4 color;
|
2019-03-28 04:53:15 +00:00
|
|
|
|
|
|
|
uniform sampler2D sampler1;
|
|
|
|
|
2020-11-08 19:59:54 +00:00
|
|
|
uniform int cbMode;
|
|
|
|
|
2019-03-28 04:53:15 +00:00
|
|
|
void main()
|
|
|
|
{
|
2021-01-15 02:13:39 +00:00
|
|
|
color = texture(sampler1, uv);
|
2020-11-08 19:59:54 +00:00
|
|
|
|
|
|
|
if (cbMode > 0)
|
2021-08-09 09:15:42 +00:00
|
|
|
color = cbTransform(color, cbMode);
|
2019-03-28 04:53:15 +00:00
|
|
|
}
|