<commit_before>//NOT_CREATE_META_DATA

#ifndef __SOC_NORMAL_MAPPING_H__
#define __SOC_NORMAL_MAPPING_H__

float3 NormalMapping(float3 normalMapXYZ, float3 normal, float3 tangent)
{
	float3 binormal = normalize( cross(normal, tangent) );

	float3x3 TBN = float3x3(normalize(tangent), normalize(binormal), normalize(normal));
	TBN = transpose(TBN);

	float3 tangentNormal = normalize(normalMapXYZ * 2 - 1);
	return mul(TBN, tangentNormal);
}

#endif<commit_msg>NormalMapping - NormalMapping -> UnpackNormal<commit_after>//NOT_CREATE_META_DATA

#ifndef __SOC_NORMAL_MAPPING_H__
#define __SOC_NORMAL_MAPPING_H__

float3 UnpackNormal(float3 normalMapXYZ, float3 normal, float3 tangent)
{
	float3 binormal = normalize( cross(normal, tangent) );

	float3x3 TBN = float3x3(normalize(tangent), normalize(binormal), normalize(normal));
	TBN = transpose(TBN);

	float3 tangentNormal = normalize(normalMapXYZ * 2.0f - 1.0f);
	return mul(TBN, tangentNormal);
}

#endif
{'fraction_non_alphanumeric': 0.10366492146596859, 'fraction_numerical': 0.027225130890052355, 'mean_word_length': 7.170940170940171, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3099116', 'n_tokens_mistral': 364, 'n_tokens_neox': 339, 'n_words': 67}