Handbook
Glossary
(make-framebuffer) ( color-texture normal-texture depth-texture -- framebuffer )
Vocabulary
bunny
.
outlined
Inputs
color-texture
an
object
normal-texture
an
object
depth-texture
an
object
Outputs
framebuffer
an
object
Definition
USING:
arrays
kernel
opengl.framebuffers
opengl.gl
sequences
;
IN:
bunny.outlined
:
(make-framebuffer)
( color-texture normal-texture depth-texture -- framebuffer )
3array
gen-framebuffer
dup
[
swap
GL_COLOR_ATTACHMENT0
GL_COLOR_ATTACHMENT1
GL_DEPTH_ATTACHMENT
3array
[
(attach-framebuffer-texture)
]
2each
check-framebuffer
]
with-framebuffer
;