diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/rect.f.glsl | 3 | ||||
-rw-r--r-- | res/rect.v.glsl | 9 |
2 files changed, 4 insertions, 8 deletions
diff --git a/res/rect.f.glsl b/res/rect.f.glsl index 907ee858..12e40469 100644 --- a/res/rect.f.glsl +++ b/res/rect.f.glsl @@ -12,7 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. #version 330 core -in vec4 color; + +uniform vec4 color; out vec4 FragColor; diff --git a/res/rect.v.glsl b/res/rect.v.glsl index a353b6b0..8baa74ff 100644 --- a/res/rect.v.glsl +++ b/res/rect.v.glsl @@ -12,14 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. #version 330 core -layout (location = 0) in vec3 aPos; - -out vec4 color; - -uniform vec4 col; +layout (location = 0) in vec2 aPos; void main() { - gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0); - color = col; + gl_Position = vec4(aPos.x, aPos.y, 0.0, 1.0); } |