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
If a container to which the filter is applied is partially out of bounds, the filter can have unintended behavior.
Consider the reflection filter. The default point at which it switches from normal to "reflected" is at y = 0.5.
If we move the duck so that part of it is outside the viewport, the image we get is different:
The reason for this is that the filter is applied to the visible portion of the container.
However, what should one do to get the filter applied to the container as if it wasn't out of bounds? That is, the duck from the first picture, but translated up?
Is there even a way to get the position and size of the final filtered texture, so that we can at least compare it to the source container.
For example, in the above pictures, let's say that the original position of the duck sprite was [50, 50], with the size of [100, 100]. We then move it to [50, -50]. The filtered texture gets rendered at [50, 0], with size [100, 50]. Is there a way to get this "final" position of the filtered texture?
The text was updated successfully, but these errors were encountered:
If a container to which the filter is applied is partially out of bounds, the filter can have unintended behavior.
Consider the reflection filter. The default point at which it switches from normal to "reflected" is at
y = 0.5
.If we move the duck so that part of it is outside the viewport, the image we get is different:
The reason for this is that the filter is applied to the visible portion of the container.
However, what should one do to get the filter applied to the container as if it wasn't out of bounds? That is, the duck from the first picture, but translated up?
Is there even a way to get the position and size of the final filtered texture, so that we can at least compare it to the source container.
For example, in the above pictures, let's say that the original position of the duck sprite was [50, 50], with the size of [100, 100]. We then move it to [50, -50]. The filtered texture gets rendered at [50, 0], with size [100, 50]. Is there a way to get this "final" position of the filtered texture?
The text was updated successfully, but these errors were encountered: