the docs say:
I assume this means only the viewport, not any custom rendertarget?
i want to do this:
<rendertarget name="advect" tag="LBM" sizedivisor="1 1" format="rgba16f" persistent="true" filter="true" />
<command type="quad" tag="LBM" vs="Quad" ps="LBM_Advect" output="advect">
<texture unit="diffuse" name="lbm" />
<texture unit="1" name="advect" />
</command>
But that seems not to work.
But it does work if i do this:
<rendertarget name="advect1" tag="LBM" sizedivisor="1 1" format="rgba16f" persistent="true" filter="true" />
<rendertarget name="advect2" tag="LBM" sizedivisor="1 1" format="rgba16f" persistent="true" filter="true" />
<command type="quad" tag="LBM" vs="Quad" ps="LBM_Advect" output="advect1">
<texture unit="diffuse" name="lbm" />
<texture unit="1" name="advect2" />
</command>
<command type="quad" tag="LBM" vs="Quad" ps="LBM_Advect" output="advect2">
<texture unit="diffuse" name="lbm" />
<texture unit="1" name="advect1" />
</command>
But now, I am doing this twice per frame… and if I want to do this to more than one target… it starts to inflate pretty fast.
Am i approaching this right? Is there a better approach?