Handbook
Glossary
draw-bunny ( world -- )
Vocabulary
gpu
.
demos
.
bunny
Inputs
world
an
object
Outputs
None
Definition
USING:
accessors
gpu.framebuffers
gpu.render
gpu.state
kernel
;
IN:
gpu.demos.bunny
:
draw-bunny
( world -- )
T{
depth-state
{
comparison
cmp-less
}
}
set-gpu-state
[
sobel>>
framebuffer>>
{
{
T{
color-attachment
}
{
0.15 0.15 0.15 1.0
}
}
{
T{
color-attachment
{
index 1
}
}
{
0.0 0.0 0.0 0.0
}
}
{
depth-attachment
1.0
}
}
clear-framebuffer
]
[
{
{
"primitive-mode"
[
drop
triangles-mode
]
}
{
"output-attachments"
[
drop
{
~color-attachment~ ~color-attachment~
}
]
}
{
"uniforms"
[
<bunny-uniforms>
]
}
{
"vertex-array"
[
bunny>>
vertex-array>>
]
}
{
"indexes"
[
bunny>>
index-elements>>
]
}
{
"framebuffer"
[
sobel>>
framebuffer>>
]
}
}
<render-set>
render
]
bi
;