Property | Type | Description | |
---|---|---|---|
m_arScreenMaterial | Material | ||
m_postProcessMaterial | Material |
Method | Description | |
---|---|---|
OnDisable ( ) : void |
Unity OnEnable callback. The reversed operation from the OnEnable() call.
|
|
OnEnable ( ) : void |
Unity OnEnable callback. The distortion post process will be turned on after this script is enabled, at the same time, we need to change the distortion flag in AR Screen shader to true as well.
|
|
OnRenderImage ( RenderTexture src, RenderTexture dest ) : void |
Unity OnRenderImage callback. Our customized post process shader will be excuted.
|
|
SetupIntrinsic ( |
Pass the camera intrinsics to both PostProcess and ARScreen shader. The camera intrinsics are needed for undistortion or distortion.
|