<commit_before>cbuffer SimpleConstants : register(b1) {
	float3 diffuseColor;
	int hasDiffuseTexture;
};

Texture2D TestTexture : register(t0);
SamplerState TestSampler : register(s0);

struct Input {
	float4 Pos : SV_POSITION;
	float3 position : TEXCOORD1;
	float3 normal : NORMAL0;
	float2 Tex : TEXCOORD0;
};

static float3 AmbientLightColor = float3(0.05333332f, 0.09882354f, 0.1819608f);
static float3 LightDirection = float3(-0.5265408f, -0.5735765f,-0.6275069f);
static float3 LightColor = float3(1.0f, 0.9607844f, 0.8078432f);

float3 lambert( float3 L, float3 N, float3 lightColor, float lightIntensity ) {
	return (max(dot(L, N), 0.0f) * lightColor) * lightIntensity;
}

float3 phong( float3 L, float3 N, float3 lightColor, float lightIntensity, float specularPower, float3 worldPos, float3 cameraPos ) {<commit_msg>Fixed stupid typo in the DX simple pixel shader.<commit_after>cbuffer MaterialConstants : register(b0) {
	float3 diffuseColor;
	int hasDiffuseTexture;
};

Texture2D TestTexture : register(t0);
SamplerState TestSampler : register(s0);

struct Input {
	float4 Pos : SV_POSITION;
	float3 position : TEXCOORD1;
	float3 normal : NORMAL0;
	float2 Tex : TEXCOORD0;
};

static float3 AmbientLightColor = float3(0.05333332f, 0.09882354f, 0.1819608f);
static float3 LightDirection = float3(-0.5265408f, -0.5735765f,-0.6275069f);
static float3 LightColor = float3(1.0f, 0.9607844f, 0.8078432f);

float3 lambert( float3 L, float3 N, float3 lightColor, float lightIntensity ) {
	return (max(dot(L, N), 0.0f) * lightColor) * lightIntensity;
}

float3 phong( float3 L, float3 N, float3 lightColor, float lightIntensity, float specularPower, float3 worldPos, float3 cameraPos ) {
{'fraction_non_alphanumeric': 0.10479573712255773, 'fraction_numerical': 0.11604499703966845, 'mean_word_length': 5.7063492063492065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6330430', 'n_tokens_mistral': 702, 'n_tokens_neox': 617, 'n_words': 160}