C# Class PlanarReflection, OZML

Inheritance: MonoBehaviour
Datei anzeigen Open project: merveilles/OZML Class Usage Examples

Public Properties

Property Type Description
clearColor Color
clipPlaneOffset float
reflectSkybox bool
reflectionMask LayerMask
reflectionSampler System.String

Public Methods

Method Description
LateUpdate ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
RenderHelpCameras ( Camera currentCam ) : void
Start ( ) : void
WaterTileBeingRendered ( Transform tr, Camera currentCam ) : void

Private Methods

Method Description
CalculateObliqueMatrix ( Matrix4x4 projection, Vector4 clipPlane ) : Matrix4x4
CalculateReflectionMatrix ( Matrix4x4 reflectionMat, Vector4 plane ) : Matrix4x4
CameraSpacePlane ( Camera cam, Vector3 pos, Vector3 normal, float sideSign ) : Vector4
CreateReflectionCameraFor ( Camera cam ) : Camera
CreateTextureFor ( Camera cam ) : RenderTexture
RenderReflectionFor ( Camera cam, Camera reflectCamera ) : void
SaneCameraSettings ( Camera helperCam ) : void
SetStandardCameraParameter ( Camera cam, LayerMask mask ) : void
sgn ( float a ) : float

Method Details

LateUpdate() public method

public LateUpdate ( ) : void
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

RenderHelpCameras() public method

public RenderHelpCameras ( Camera currentCam ) : void
currentCam Camera
return void

Start() public method

public Start ( ) : void
return void

WaterTileBeingRendered() public method

public WaterTileBeingRendered ( Transform tr, Camera currentCam ) : void
tr Transform
currentCam Camera
return void

Property Details

clearColor public_oe property

public Color clearColor
return Color

clipPlaneOffset public_oe property

public float clipPlaneOffset
return float

reflectSkybox public_oe property

public bool reflectSkybox
return bool

reflectionMask public_oe property

public LayerMask reflectionMask
return LayerMask

reflectionSampler public_oe property

public String,System reflectionSampler
return System.String