2D Sprite Renderer and sprite framework, Began additional OpenGL Renderer, started transitioning multiplayer networking to use Java NIO

This commit is contained in:
Halbear 2026-08-20 03:03:03 +01:00
parent 5a05b9d65e
commit 3e886e5ba8
165 changed files with 4460 additions and 5485 deletions

View file

@ -10,7 +10,7 @@ layout(push_constant) uniform pc {
vec2 modelSize;
vec2 position;
vec2 screenSize;
float zAmount;
} push_constants;
layout(set = 0, binding = 0) uniform ViewUniform{
@ -22,7 +22,7 @@ layout(set = 0, binding = 0) uniform ViewUniform{
void main() {
vec2 ScaledPos = inPos * push_constants.modelSize;
vec2 worldPos = push_constants.position + ScaledPos;
worldPos += viewUniform.camPos;
worldPos += (viewUniform.camPos * push_constants.zAmount);
vec2 ndc = vec2(
(worldPos.x / push_constants.screenSize.x) * 2.0 - 1.0,
(worldPos.y / push_constants.screenSize.y) * 2.0 - 1.0