Refactor preloading/rendering/update
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user