Message #2169576 - Error in shader compilation: info: %s %s %s

Kind #970: Error in shader compilation: info: %s %s %s

Game: MONSTER HUNTER FREEDOM UNITEā„¢ (ULUS10391_1.01)

Error in shader compilation: info: ERROR: 0:12: 'YT' : Syntax error:  syntax error
INTERNAL ERROR: no main() function!
ERROR: 1 compilation errors.  No code generated.


postshader
#ifdef GL_ES
precision mediump float;
#endif
#define saturation 1.2 //normal: 1.0 
#define brightness 1.2 //normal: 1.0
#define contrast 1.5 //normal: 1.0
#define red 1.3 //normal: 1.0
#define green 1.1 //normal: 1.0
#define blue 1.3 //normal: 1.0

///////////////////////////////////
Subscribe YT: Sigit Saputra
///////////////////////////////////

#define sugoicolor 1
#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif

uniform sampler2D sampler0;
uniform vec4 u_time;

uniform vec2 u_texelDelta;
uniform vec2 u_pixelDelta;
varying vec2 v_texcoord0;

float overlay(float base, float blend)
{float result = 0.0;
if( base < 0.5 )
result = 2.0 * base * blend;
else
result = 1.0 - (1.0 - 2.0*(base-0.5)) * (1.0-blend);
return result;}

void main()
{vec3 color = texture2D(sampler0, v_texcoord0.xy).xyz;
#if(sugoicolor==1)

float sat = saturation;
float brt = brightness;
float con = contrast;

float AvgLumR = red;
float AvgLumG = green;
float AvgLumB = blue;

const vec3 LumCoeff = vec3(0.2125, 0.7154, 0.0721);

vec3 AvgLumin = vec3(AvgLumR, AvgLumG, AvgLumB);
vec3 conRGB = vec3(0.5, 0.5, 0.5);
vec3 brtColor = color.rgb * brt;
vec3 intensity = vec3((brtColor.r*LumCoeff.r)+(brtColor.g*LumCoeff.g)+(brtColor.b*LumCoeff.b));
vec3 satColor = mix(intensity, brtColor, sat);
vec3 conColor = mix(conRGB, satColor, con);
vec3 mixColor = AvgLumin * conColor;

color.rgb = mixColor;

#endif

gl_FragColor.xyz=color;
gl_FragColor.a = 1.0;}

Status: new. 2 hits from 2022-09-15 01:41:15 to 2022-09-15 01:41:16 UTC. Message #2169576.

Individual reports are stored since 2026-11-12, the newest 100 per message; none for this message yet. Older hits only exist as the counters above. Hover a cell for details.