[Viewport] Add option to inherit parents texture filter/repeat, use it for popups.
This commit is contained in:
parent
9095a76ff5
commit
cdcb208eb9
9 changed files with 199 additions and 44 deletions
|
|
@ -768,7 +768,10 @@
|
|||
The texture filter reads from the nearest pixel and blends between the nearest 2 mipmaps (or uses the nearest mipmap if [member ProjectSettings.rendering/textures/default_filters/use_nearest_mipmap_filter] is [code]true[/code]). This makes the texture look pixelated from up close, and smooth from a distance.
|
||||
Use this for non-pixel art textures that may be viewed at a low scale (e.g. due to [Camera2D] zoom or sprite scaling), as mipmaps are important to smooth out pixels that are smaller than on-screen pixels.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_MAX" value="4" enum="DefaultCanvasItemTextureFilter">
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_PARENT_NODE" value="4" enum="DefaultCanvasItemTextureFilter">
|
||||
The [Viewport] will inherit the filter from its parent [CanvasItem] or [Viewport].
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_MAX" value="5" enum="DefaultCanvasItemTextureFilter">
|
||||
Represents the size of the [enum DefaultCanvasItemTextureFilter] enum.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_DISABLED" value="0" enum="DefaultCanvasItemTextureRepeat">
|
||||
|
|
@ -780,7 +783,10 @@
|
|||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MIRROR" value="2" enum="DefaultCanvasItemTextureRepeat">
|
||||
Flip the texture when repeating so that the edge lines up instead of abruptly changing.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MAX" value="3" enum="DefaultCanvasItemTextureRepeat">
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_PARENT_NODE" value="3" enum="DefaultCanvasItemTextureRepeat">
|
||||
The [Viewport] will inherit the repeat mode from its parent [CanvasItem] or [Viewport].
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MAX" value="4" enum="DefaultCanvasItemTextureRepeat">
|
||||
Represents the size of the [enum DefaultCanvasItemTextureRepeat] enum.
|
||||
</constant>
|
||||
<constant name="SDF_OVERSIZE_100_PERCENT" value="0" enum="SDFOversize">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue