You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When activating anti-Aliasing on a Starling FragmentFilter on iOS, the filter contents accumulates in each frame, i.e. it seems as if context.clear (with a texture as render target) would not work any longer.
Background information:
Starlings FragmentFilters render objects into a texture so that they can then be processed by subsequent shaders. When you assign a vanilla FragmentFilter to a display object, it just displays that texture.
On iOS, it seems as if the texture (render target) wasn't cleared correctly as soon as antiAliasing is activated on the filter (which is forwarded to context.setRenderTexture).
The result, which should be a red rotating quad, looks like this:
Remarks:
This does work fine on macOS and the AIR iOS emulator.
I tried to reproduce the issue with pure Stage3D code, without Starling, but I could not do it. It must be some combination of settings Starling is using.
Known Workarounds
Starling's filters also support a resolution property that works similar to anti-aliasing, but doesn't rely on Stage3D features. That seems to work fine.
The text was updated successfully, but these errors were encountered:
Problem Description
When activating anti-Aliasing on a Starling FragmentFilter on iOS, the filter contents accumulates in each frame, i.e. it seems as if
context.clear
(with a texture as render target) would not work any longer.Background information:
Starlings FragmentFilters render objects into a texture so that they can then be processed by subsequent shaders. When you assign a vanilla
FragmentFilter
to a display object, it just displays that texture.On iOS, it seems as if the texture (render target) wasn't cleared correctly as soon as
antiAliasing
is activated on the filter (which is forwarded tocontext.setRenderTexture
).Steps to Reproduce
Run the following code as part of a Starling root object:
The result, which should be a red rotating quad, looks like this:
Remarks:
Known Workarounds
Starling's filters also support a
resolution
property that works similar to anti-aliasing, but doesn't rely on Stage3D features. That seems to work fine.The text was updated successfully, but these errors were encountered: