draw-bunny ( world -- )


Vocabulary
gpu.demos.bunny

Inputs and outputs
worldan object


Definition


: 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 ;