Closed Kludgy closed 6 years ago
Yes, the Viewport is provided to the rasterize function as a function over the Shader monad environment s. So you can create a CompiledShader that takes the Viewport as argument, eg (ViewPort, SomeOtherDataYouNeedPerFrame) -> Render os ().
Hope that helps!
Yes that was the missing piece for me, thank you!
Is there a way to update the viewport without recompiling fragment shaders? (Should there be?)