public void SetStyleEffectsEdgeDetectionConfig(IStyleEffectsStage effect, EdgeDetectionConfiguration config, float transitionSeconds) { if (effect == null) { throw new Yak2DException("Unable to set style effect as stage passed is null"); } SetStyleEffectsEdgeDetectionConfig(effect.Id, config, transitionSeconds); }
public void SetEdgeDetectionTransition(ref EdgeDetectionConfiguration config, float transitionSeconds) { transitionSeconds = Utility.Clamper.Clamp(transitionSeconds, 0.0f, float.MaxValue); if (transitionSeconds == 0.0f) { _edgeDetectionCurrent = config; _edgeDetectionTransitioning = false; UpdateEdgeDetectionBuffer(); return; } _edgeDetectionPrevious = _edgeDetectionCurrent; _edgeDetectionTarget = config; _edgeDetectionTransitionTotalTime = transitionSeconds; _edgeDetectionTransitionTimeCount = 0.0f; _edgeDetectionTransitioning = true; }
public void SetStyleEffectsEdgeDetectionConfig(ulong effect, EdgeDetectionConfiguration config, float transitionSeconds) { CacheRenderStageModelInVisitor(effect); _renderStageVisitor.CachedStyleEffectStageModel?.SetEdgeDetectionTransition(ref config, transitionSeconds); }