Shaders/Cccalibrator: Fix compile errors

This commit is contained in:
Connor McLaughlin 2020-12-21 01:39:25 +10:00
parent 9384f3a8e9
commit f393ea618e
1 changed files with 13 additions and 11 deletions

View File

@ -1,7 +1,9 @@
/*==========================================*\ /*==========================================*/
/*=======Calibrator by PavelDurov1488=======*\ /*=======Calibrator by PavelDurov1488=======*/
/*==========It's not ready yet...===========*\ /*==========It's not ready yet...===========*/
/*===I need to add blur, dynamic noise...===*\ /*===I need to add blur, dynamic noise...===*/
/*
[configuration] [configuration]
@ -69,19 +71,19 @@ float pseudoNoise(vec2 co)
return fract(sin(dot(vec2(co.x+0.513,co.y+0.4124) ,vec2(12.9898,78.233))) * 43758.5453);// *fract(sin(dot(vec2(co.x+4.231,co.y+3.143) ,vec2(12.9898,78.233)*2.0)) * 43758.5453); //pseudo random number generator return fract(sin(dot(vec2(co.x+0.513,co.y+0.4124) ,vec2(12.9898,78.233))) * 43758.5453);// *fract(sin(dot(vec2(co.x+4.231,co.y+3.143) ,vec2(12.9898,78.233)*2.0)) * 43758.5453); //pseudo random number generator
} }
const vec3 RGBtoY = vec3(0.299, 0.587, 0.114); CONSTANT vec3 RGBtoY = vec3(0.299, 0.587, 0.114);
const vec3 RGBtoI = vec3(0.596,-0.275,-0.321); CONSTANT vec3 RGBtoI = vec3(0.596,-0.275,-0.321);
const vec3 RGBtoQ = vec3(0.212,-0.523, 0.311); CONSTANT vec3 RGBtoQ = vec3(0.212,-0.523, 0.311);
const vec3 YIQtoR = vec3(1.0, 0.95568806036115671171, 0.61985809445637075388); CONSTANT vec3 YIQtoR = vec3(1.0, 0.95568806036115671171, 0.61985809445637075388);
const vec3 YIQtoG = vec3(1.0,-0.27158179694405859326,-0.64687381613840131330); CONSTANT vec3 YIQtoG = vec3(1.0,-0.27158179694405859326,-0.64687381613840131330);
const vec3 YIQtoB = vec3(1.0,-1.10817732668266195230, 1.70506455991918171490); CONSTANT vec3 YIQtoB = vec3(1.0,-1.10817732668266195230, 1.70506455991918171490);
void main() void main()
{ {
float2 texcoord = GetCoordinates(); float2 texcoord = GetCoordinates();
float2 time = float2(GetTime()); float2 time = float2(GetTime(), GetTime());
// int FrameCount = GetFrameCount(); // int FrameCount = GetFrameCount();
float4 color = Sample(); float4 color = Sample();
// float brightness_scale = GetOption(BRIGHTNESS_SCALE); // float brightness_scale = GetOption(BRIGHTNESS_SCALE);