diff options
author | sanine-a <sanine.not@pm.me> | 2020-11-01 13:04:05 -0600 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-11-01 13:04:05 -0600 |
commit | 8bb877ad57e7e41d928408e81f4e8cca63e171f7 (patch) | |
tree | 5cc4a79a492bd3c7224070b3bd00aba512a9b053 /demo/ScreenQuad.lua | |
parent | cf75cc42cd11c31ff9402751bec98ba607fd820f (diff) |
add basic node types
Diffstat (limited to 'demo/ScreenQuad.lua')
-rw-r--r-- | demo/ScreenQuad.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demo/ScreenQuad.lua b/demo/ScreenQuad.lua index 5d78cf3..70794c1 100644 --- a/demo/ScreenQuad.lua +++ b/demo/ScreenQuad.lua @@ -28,18 +28,18 @@ out vec4 color; void main() { - color = vec4(1 - texture(tex, UV).xyz, 1); + color = vec4(texture(tex, UV).xyz, 1); } ]] ScreenQuad.shader = honey.shader.new(vertexShader, fragmentShader) ScreenQuad.tex = honey.texture.new() ScreenQuad.depth = honey.texture.new() -honey.texture.create(ScreenQuad.tex, 'rgb', 640, 480); -honey.texture.create(ScreenQuad.depth, 'depth', 640, 480); +honey.texture.create(ScreenQuad.tex, 'rgb', 640, 640); +honey.texture.create(ScreenQuad.depth, 'depth', 640, 640); --honey.texture.load(ScreenQuad.texture, 'checkerboard.png', false) -ScreenQuad.fb = honey.texture.new_framebuffer(ScreenQuad.tex, ScreenQuad.depth, 640, 480) +ScreenQuad.fb = honey.texture.new_framebuffer(ScreenQuad.tex, ScreenQuad.depth, 640, 640) ScreenQuad.draw = function(self) honey.texture.use(self.tex, 0) |