mirror - eisclimber/ExPresS-XR GitHub Wiki

Mirror

Class in ExPresSXR.Presentation

Inherits from UnityEngine.MonoBehaviour

Summary

Represents a mirror. Be careful as the reflection angles to not exactly line up. For accurate and performant mirrors use a separate package.

public class Mirror : MonoBehaviour

Properties

Name Description
ActiveRenderTexture The RenderTexture currently used for the mirror.
ActualPixelResultion The pixel size of the currently used RenderTexture. Returns (0,0) if no texture is set.
BrighteningFactor Factor that shifts the bightness the displayed image.
CustomRenderTexture The RenderTexture that is used when 'provideCustomRenderTexture' is enabled.
MirrorMaterial The material used to display the RenderTexture.
MirrorPlane Reference to the Mirror's Plane.
OverlayStrength Strength of the effect applied by the overlayTexture.
OverlayTexture Texture that is laid over the mirror to make it look more realistic (e.g. dirt, fingerprints, ...).
Some example textures can be found at 'ExPresS XR/Sprites/Mirror/'.
PixelRatio Aspect ratio of the mirror plane in px.
ProvideCustomRenderTexture If enabled require providing a custom RenderTexture. Else it will be generated automatically.
ResolutionPct Resolution of the mirror in percentage. Scales the amount of pixels of the aspect ratio, higher values might impact performance.
TintColor Color that is mixed with the displayed image to change it's color. Use white for no tinting.
⚠️ **GitHub.com Fallback** ⚠️