Message #2010871 - Error in shader program link: info: %s fs: %s %s vs: %s %s

Kind #967: Error in shader program link: info: %s fs: %s %s vs: %s %s

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

Error in shader program link: info: Invalid fragment shader. Link cannot proceed.

fs: postshader (failed)
#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif

uniform sampler2D sampler0;
varying vec2 v_texcoord0;
uniform vec4 u_setting;
uniform vec2 u_pixelDelta;


vec3 processColorReduction(vec3 color) {

	vec3 colorRes = vec3(u_setting.y, u_setting.z, u_setting.w);
	color = floor(color.rgb * colorRes) / (colorRes - 1.0);
	color = min(color, 1.0);
	return color;
}

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

	if(u_setting.x==2.0 || (u_setting.x==0.0 && u_video==0.0) || (u_setting.x==1.0 && u_video==1.0)) {
		color=processColorReduction(color);
	}

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

vs: postshader
uniform vec2 u_texelDelta;
uniform vec2 u_pixelDelta;
attribute vec4 a_position;
attribute vec2 a_texcoord0;
varying vec2 v_texcoord0;

void main() {
	v_texcoord0 = a_texcoord0 + 0.000001; //HLSL precision workaround
	gl_Position = a_position;
}

Status: new. 7 hits from 2021-12-31 16:59:39 to 2021-12-31 17:30:14 UTC. Message #2010871.

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.