<commit_before>#ifdef HIGHPRECISION
precision highp float;
#else
precision mediump float;
#endif

#include "Lighting.glsl";

varying vec2 v_Texcoord;
uniform sampler2D u_texture;
uniform vec3 u_marginalColor;

varying vec3 v_Normal;

#if defined(DIRECTIONLIGHT)
	#ifdef LEGACYSINGLELIGHTING
		uniform DirectionLight u_DirectionLight;
	#else
		uniform int u_DirationLightCount;
		uniform sampler2D u_LightBuffer;
	#endif
uniform vec3 u_CameraPos;
varying vec3 v_PositionWorld;
#endif

vec3 getDirectionLightColor()
{
	for (int i = 0; i < MAX_LIGHT_COUNT; i++) 
	{
		if(i >= u_DirationLightCount)
			break;
		DirectionLight directionLight = getDirectionLight(u_LightBuffer,i);
		return directionLight.color;
	}
}

void main()
{

	
	gl_FragColor=texture2D(u_texture,v_Texcoord);
	
	vec3 normal=normalize(v_Normal);
	vec3 toEyeDir = normalize(u_CameraPos-v_PositionWorld);
	float Rim = 1.0 - max(0.0,dot(toEyeDir, normal));

	vec3 lightColor;<commit_msg>zqx--Fix edge lighting sample bug.<commit_after>#ifdef HIGHPRECISION
precision highp float;
#else
precision mediump float;
#endif

#include "Lighting.glsl";

varying vec2 v_Texcoord;
uniform sampler2D u_texture;
uniform vec3 u_marginalColor;

varying vec3 v_Normal;

#if defined(DIRECTIONLIGHT)
	#ifdef LEGACYSINGLELIGHTING
		uniform DirectionLight u_DirectionLight;
	#else
		uniform int u_DirationLightCount;
		uniform sampler2D u_LightBuffer;
	#endif
uniform vec3 u_CameraPos;
varying vec3 v_PositionWorld;
#endif

vec3 getDirectionLightColor()
{
	vec3 lightColor = vec3(1.0, 0.0, 0.0);
	#ifdef LEGACYSINGLELIGHTING
		return u_DirectionLight.color;
	#else
		for (int i = 0; i < MAX_LIGHT_COUNT; i++) 
		{
			if(i >= u_DirationLightCount)
				break;
			DirectionLight directionLight = getDirectionLight(u_LightBuffer,i);
			lightColor = directionLight.color;
			break;
		}
	#endif

	return lightColor;
}

void main()
{

	
	gl_FragColor=texture2D(u_texture,v_Texcoord);
	
	vec3 normal=normalize(v_Normal);
	vec3 toEyeDir = normalize(u_CameraPos-v_PositionWorld);
	float Rim = 1.0 - max(0.0,dot(toEyeDir, normal));

	vec3 lightColor;
{'fraction_non_alphanumeric': 0.09029779058597502, 'fraction_numerical': 0.020172910662824207, 'mean_word_length': 5.63375796178344, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '828794', 'n_tokens_mistral': 834, 'n_tokens_neox': 767, 'n_words': 173}