Netcode Bootstrap

This commit is contained in:
Luis Gonzalez
2026-05-31 14:27:52 -07:00
parent 99d8d2d2a9
commit 7fa77ce821
1813 changed files with 2921554 additions and 84 deletions
@@ -0,0 +1,27 @@
#ifndef RUKHANKA_DEBUG_DRAWER_COMMON_HLSL_
#define RUKHANKA_DEBUG_DRAWER_COMMON_HLSL_
float3 GetCameraRelativePositionWS(float3 positionWS)
{
#if (SHADEROPTIONS_CAMERA_RELATIVE_RENDERING != 0)
positionWS -= _WorldSpaceCameraPos.xyz;
#endif
return positionWS;
}
/////////////////////////////////////////////////////////////////////////////////
float4 UnpackColor(uint color)
{
float4 rv = float4
(
color >> 24,
color >> 16 & 0xff,
color >> 8 & 0xff,
color & 0xff
);
rv = rv / 255.0f;
return rv;
}
#endif