ProtoFlux:Render To Texture Asset: Difference between revisions

From Resonite Wiki
Created a page for the Render To Texture Asset node.
 
Fixed link.
 
Line 19: Line 19:
|}}
|}}


The <code>Render To Texture Asset</code> node takes in a provided [[Type:Camera|Camera]], resolution, file format, and quality for the texture. Then this node will attempt to render it into a texture, and returns the asset URL for the world to use.
The <code>Render To Texture Asset</code> node takes in a provided [[Camera (Component)|Camera]], resolution, file format, and quality for the texture. Then this node will attempt to render it into a texture, and returns the asset URL for the world to use.


== Inputs ==
== Inputs ==

Latest revision as of 01:51, 24 May 2024

Render To Texture Asset
*
OnRenderStarted
Camera
OnRendered
Resolution
OnFailed
Format
RenderedAssetURL
Quality
Rendering

The Render To Texture Asset node takes in a provided Camera, resolution, file format, and quality for the texture. Then this node will attempt to render it into a texture, and returns the asset URL for the world to use.

Inputs

* (AsyncCall)

Calls an impulse to render a texture.

Camera (Camera)

The camera used to render the texture.

Resolution (int2)

The resolution for the texture.

Format (string)

The texture asset file format (defaults to webp).

Quality (int)

The quality of the texture asset (default to 200).

Outputs

OnRenderStarted (AsyncCall)

Fires when this rendering task has started.

OnRendered (Continuation)

Fires when this rendering task has finished rendering.

OnFailed (Continuation)

Fires when this rendering task has failed.

RenderedAssetURL (Uri)

The Uri asset of the texture.