(One intermediate revision by one other user not shown)
Line 2:
Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=RenderTextureProviderComponent.png
|Image=RenderTextureProviderComponent.png
|Name=Render Texture Provider
|Name=Render Texture Provider
}}
}}
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.
<!--T:2-->
<!--T:2-->
Line 12:
Line 12:
{{Table ComponentFields
{{Table ComponentFields
|Size|Int2|The size the camera renders in <code>width</code> and <code>height</code>
|Size|Int2|The size the camera renders in <code>width</code> and <code>height</code>
|Depth|Int|
|Depth|Int|Precision, in bits, of the depth buffer used for rendering. Possibly values are 0, 16, 24 and 32.
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.
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}
Needs a mirror and a camera example.
<!--T:5-->
<!--T:5-->
== Related Components ==
== Related Components ==
* [[Component:Camera|Camera]] - it requires destination to be this component often
* [[Component:Camera]] - it requires destination to be this component often
* [[Component:CameraPortal]] - it requires destination to be this component often
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.
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
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
Component:Camera - it requires destination to be this component often