Handbook
Glossary
draw-sobel ( world -- )
Vocabulary
gpu
.
demos
.
bunny
Inputs
world
an
object
Outputs
None
Definition
USING:
accessors
gpu.render
gpu.state
kernel
;
IN:
gpu.demos.bunny
:
draw-sobel
( world -- )
T{
depth-state
}
set-gpu-state
sobel>>
{
{
"primitive-mode"
[
drop
triangle-strip-mode
]
}
{
"indexes"
[
drop
T{
index-range
{
count 4
}
}
]
}
{
"uniforms"
[
<sobel-uniforms>
]
}
{
"vertex-array"
[
vertex-array>>
]
}
}
<render-set>
render
;