# Having trouble with 2d projection (Opengl)

I need to change the normalize coords from -1 to 1 to the width and height of my application. The reason why I want to change the normalize coords is because i think it would be a easier set position of objects and find the globalbounds of objects

my Rectangle disappear when i put my projection matrix in the vertex shader

#version 330

layout(location = 0) in vec4 position;
uniform vec2 offset;
uniform mat4 projection;

void main()
{
vec4 translate = vec4(offset.x, offset.y, 0.0, 0.0); //Using translate to move the rectangle via
//gluniform2f
gl_Position = projection * position + translate;
}

glm::mat4 proj = glm::ortho(-2.f, 2.f, -1.5f, 1.5f, -1.f, 1.f);