Refactor preloading/rendering/update

This commit is contained in:
2023-03-24 11:52:40 +00:00
parent 4b92a43535
commit d524a14da4
8 changed files with 32 additions and 68 deletions
+3 -2
View File
@@ -6,8 +6,9 @@ const vec2 winSize = vec2 (300.0,300.0);
// this is so that the window size can be extracted and the shader recompiled on
// the fly
layout (binding = 0) uniform sampler2D screenTexture;
const float hOff = 3 / winSize.x;
const float vOff = 3 / winSize.y;
// the 1.5 maximises the blend, so to speak
const float hOff = 1.5 / winSize.x;
const float vOff = 1.5 / winSize.y;
//const vec2 off[9] = vec2[]
// ( vec2( hOff, vOff )
// , vec2( hOff, 0.0 )