C# 클래스 ARCameraPostProcess, project-tango-poc

The post process distortion effect added on the virtual object. Enable/disable this script will turn on/off the distortion effect, leave it to disabled it's distortion is not crucial to your application.
상속: MonoBehaviour
파일 보기 프로젝트 열기: stetro/project-tango-poc 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_arScreenMaterial Material
m_postProcessMaterial Material

비공개 메소드들

메소드 설명
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 ( TangoCameraIntrinsics intrinsics ) : void

Pass the camera intrinsics to both PostProcess and ARScreen shader. The camera intrinsics are needed for undistortion or distortion.

프로퍼티 상세

m_arScreenMaterial 공개적으로 프로퍼티

The AR screen material. Needed to dynamically turn on / off the undistortion effect on the AR image.
public Material m_arScreenMaterial
리턴 Material

m_postProcessMaterial 공개적으로 프로퍼티

The post process shader that is running on the camera.
public Material m_postProcessMaterial
리턴 Material