stf.texture

[ Schema | Category: Component ]

Information on how an image is to be converted into a GPU texture.

Implementations

Blender

`stf.texture` STF Component on Blender Image

Godot

PortableCompressedTexture2D

Unity

Texture2D

Properties

type

required Constant: "stf.texture"

width

required Type: integer

Width in pixels of the resulting GPU texture.

height

required Type: integer

Height in pixels of the resulting GPU texture.

downscale_priority

required Type: integer

In case of an enforced memory limit, how quickly should the resolution of the resulting GPU texture reduced.

quality

required Type: number

Indicate how much the GPU texture can be compressed. Value range is from 0 to 1. 1 means not compression should be used.

mipmaps

required Type: boolean

Default: True

Whether to generate mipmaps.

Json Example:

{
    "type": "stf.texture",
    "width": 1024,
    "height": 1024,
    "downscale_priority": 1,
    "quality": 0.5,
    "mipmaps": true
}