Пример #1
0
        /// <summary>
        /// Create an image effect node to apply a collection of image effect to the given Source map.
        /// Each effect is applied in the order it is added to the node.
        /// </summary>
        public ImageEffectNode(HeightMapNode source, params IEffect[] effects)
        {
            Check.NotNull(source, nameof(source));

            Source = source;
            _effects.AddRange(effects);
        }
Пример #2
0
        /// <summary>
        /// Add an add dependency with a weight,
        /// where the weight is a percentage of how much of the dependency is added.
        /// </summary>
        public void AddDependency(HeightMapNode dependency)
        {
            Check.NotNull(dependency, nameof(dependency));

            lock (_dependencies)
            {
                _dependencies.Add(new SerializedNode(dependency));
            }
        }
Пример #3
0
        /// <summary>
        /// Create a <see cref="HeightMap"/> normalizer node.
        /// </summary>
        /// <param name="source"><see cref="HeightMap"/> to normalize.</param>
        public NormalizeNode(HeightMapNode source)
        {
            Check.NotNull(source, nameof(source));

            Source = source;
        }