コード例 #1
0
 internal void Validate(WaterRenderingModeParameters parameters)
 {
     RenderTextureResizingFactor       = parameters.TextuerResizingFactor;
     ViewingFrustumHeightScalingFactor = parameters.ViewingFrustumHeightScalingFactor;
     CullingMask             = parameters.CullingMask;
     RenderTextureFilterMode = parameters.FilterMode;
     ZOffset = parameters.ZOffset;
 }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }