From 711f530f7afe3358c674cf418ee067e7a4501699 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 23 Aug 2022 00:31:14 -0500 Subject: add gl.TexParameteri() --- demo/honey.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'demo/honey.lua') diff --git a/demo/honey.lua b/demo/honey.lua index b0b3ec4..3388b52 100644 --- a/demo/honey.lua +++ b/demo/honey.lua @@ -121,6 +121,12 @@ gl.EnableVertexAttribArray(2) local texture = gl.GenTextures() gl.BindTexture(gl.TEXTURE_2D, texture) +gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT) +gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT) + +gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR) +gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR) + local image, width, height = honey.image.load('container.jpg', 3) gl.TexImage2D( gl.TEXTURE_2D, 0, -- cgit v1.2.1