<commit_before>struct VsIn {
	float3 vPosition : vPosition;
	float3 vNormal : vNormal;
};

struct VsToPs {
	float2 texcoord : texcoord;
	float2 position : position;
	float3 normal : normal;
	float4 color : color;
	float4 pos4 : SV_POSITION;
};

cbuffer perDrawCallUBO : register(b0) {
	matrix matW;
	matrix matV;
	matrix matP;
	float time;
};

static const float airToWater = 1.0 / 1.33333;
static const float3 camDir = float3(0, 0, -1);
static const float waterDepth = 0.2;

VsToPs mainVS(VsIn vsIn)
{
	VsToPs vsToPs;

	matrix matWVP = matP * matV * matW;
	vsToPs.pos4 = mul(matWVP, float4(vsIn.vPosition.xyz, 1));
	vsToPs.normal = mul(normalize(vsIn.vNormal), (float3x3)matW);<commit_msg>Fix wrong operation.<commit_after>struct VsIn {
	float3 vPosition : vPosition;
	float3 vNormal : vNormal;
};

struct VsToPs {
	float2 texcoord : texcoord;
	float2 position : position;
	float3 normal : normal;
	float4 color : color;
	float4 pos4 : SV_POSITION;
};

cbuffer perDrawCallUBO : register(b0) {
	matrix matW;
	matrix matV;
	matrix matP;
	float time;
};

static const float airToWater = 1.0 / 1.33333;
static const float3 camDir = float3(0, 0, -1);
static const float waterDepth = 0.2;

VsToPs mainVS(VsIn vsIn)
{
	VsToPs vsToPs;

	matrix matWVP = mul(matP, mul(matV, matW));
	vsToPs.pos4 = mul(matWVP, float4(vsIn.vPosition.xyz, 1));
	vsToPs.normal = mul(normalize(vsIn.vNormal), (float3x3)matW);
{'fraction_non_alphanumeric': 0.11541218637992831, 'fraction_numerical': 0.04157706093189964, 'mean_word_length': 4.584, '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': '6251600', 'n_tokens_mistral': 583, 'n_tokens_neox': 556, 'n_words': 143}