ProtoFlux:Texture2D Format: Difference between revisions

From Resonite Wiki
Create Texture2D Format ProtoFlux Node Page
 
fix example
 
Line 38: Line 38:
== Examples ==
== Examples ==
<gallery widths=480px heights=480px>
<gallery widths=480px heights=480px>
File:Protoflux_texture_asset_parsing.webp|Example of a Sample Texture2D UV being used in a larger example code reading 3D and 2D textures.
File:Protoflux_texture_asset_parsing.webp|Example of a Texture2D Format being used in a larger example code reading 3D and 2D textures.
</gallery>
</gallery>


[[Category:ProtoFlux:Assets]]
[[Category:ProtoFlux:Assets]]

Latest revision as of 20:59, 19 February 2024

Texture 2D Format
Texture
Size
Format
MipMapCount
Assets

Texture 2D Format is a ProtoFlux node that returns some of the MetaData associated with a StaticTexture2D Component.

Inputs

Texture (IAsset`1<Texture2D>)

The texture to read the metadata for.

Outputs

Size (int2)

The size of the texture in pixels.

Format (TextureFormat)

The TextureFormat the texture is in.

MipMapCount (int)

How many mipmap levels this texture has.

Examples