internal void Validate(WaterRenderingModeParameters parameters) { RenderTextureResizingFactor = parameters.TextuerResizingFactor; ViewingFrustumHeightScalingFactor = parameters.ViewingFrustumHeightScalingFactor; CullingMask = parameters.CullingMask; RenderTextureFilterMode = parameters.FilterMode; ZOffset = parameters.ZOffset; }
public WaterRenderingMode(WaterRenderingModeParameters parameters, bool isReflectionMode) { _renderTextureResizingFactor = parameters.TextuerResizingFactor; _renderTextureFixedSize = parameters.TextureFixedSize; _renderTextureUseFixedSize = parameters.TextureUseFixedSize; _viewingFrustumHeightScalingFactor = parameters.ViewingFrustumHeightScalingFactor; _cullingMask = parameters.CullingMask; _renderTextureFilterMode = parameters.FilterMode; _isReflectionMode = isReflectionMode; }
public WaterRenderingMode(WaterRenderingModule renderingModule, WaterRenderingModeParameters parameters, Transform renderingModeCameraParent, bool isReflectionMode) { _renderingModule = renderingModule; _renderTextureResizingFactor = parameters.TextuerResizingFactor; _viewingFrustumHeightScalingFactor = parameters.ViewingFrustumHeightScalingFactor; _cullingMask = parameters.CullingMask; _renderTextureFilterMode = parameters.FilterMode; _zOffset = parameters.ZOffset; _cameraParent = renderingModeCameraParent; _isReflectionMode = isReflectionMode; }