This commit is contained in:
Vasily Petrov 2026-06-18 01:18:29 +03:00
commit 2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions

View file

@ -0,0 +1,25 @@
#ifndef SKIN_NONE
#include "deffer_model.vs.hlsl"
#else
#include "common.hlsli"
void main(in v_editor I, out p_bumped_new O)
{
float3 Pe = mul(m_WV, I.P);
O.tcdh = float4(I.tc.xy, 0.7f, 0.5f);
O.position = float4(Pe, 1.0f);
float3 N = normalize(mul(m_W, I.N));
O.tcdh.z = N.y * 0.3f + 0.5f;
N = normalize(mul(m_V, N));
O.M1 = N;
O.M2 = N;
O.M3 = N;
O.hpos = mul(m_WVP, I.P);
}
#endif