Component:RenderTextureProvider: Difference between revisions

From Resonite Wiki
add info, field templates
Added note about the workaround for rendertextureprovider wrapping
Line 21: Line 21:
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{Note|'''RenderTextureProvider''' will not wrap with a Depth value above 0, be sure to set it to 0 if you want to create repeating patterns! see: [https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/1265#issuecomment-3125085062 This comment on issue #1265 for clarification.]|warning}}
Attach to a slot and use as a render texture for any component that accepts it. The texture color data will now exist. Insert into any [[material]] to view.
Attach to a slot and use as a render texture for any component that accepts it. The texture color data will now exist. Insert into any [[material]] to view.



Revision as of 04:02, 28 July 2025

Component image 
Render Texture Provider component as seen in the Scene Inspector

The RenderTextureProvider component is used as a target for rendering Component:Camera or Component:CameraPortal data onto. This component can be used as a texture for any material.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Size Int2 The size the camera renders in width and height
Depth Int Precision, in bits, of the depth buffer used for rendering. Possibly values are 0, 16, 24 and 32.
FilterMode TextureFilterMode How to handle the interpolation between pixels.
AnisotropicLevel Int The levels of Anisotropic filtering distances when using Anisotropic for FilterMode
WrapModeU TextureWrapMode How to repeat or mirror the texture along the X axis. this goes into affect when X values are outside of the range [0.0 to 1.0].
WrapModeV TextureWrapMode How to repeat or mirror the texture along the Y axis. this goes into affect when Y values are outside of the range [0.0 to 1.0].

Usage

RenderTextureProvider will not wrap with a Depth value above 0, be sure to set it to 0 if you want to create repeating patterns! see: This comment on issue #1265 for clarification.

Attach to a slot and use as a render texture for any component that accepts it. The texture color data will now exist. Insert into any material to view.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it. Needs a mirror and a camera example.

Related Components