INNER CODE UNIT · Python
setup
BrokenSource/DepthFlow · depthflow/scene.py:107
def setup(self) -> None:
if self.image.is_empty():
self.input(None)
def update(self) -> None:
# Animation code here!
...
def handle(self, message: ShaderMessage) -> None:
ShaderScene.handle(self, message)
if isinstance(message, ShaderMessage.Window.FileDrop):
self.input(image=message.first, depth=message.second)
def pipeline(self) -> Iterable[ShaderVariable]:
yield from ShaderScene.pipeline(self)
yield from self.state.pipeline()