4 using System.ComponentModel;
5 using SiliconStudio.Assets;
6 using SiliconStudio.Core;
7 using SiliconStudio.Core.IO;
8 using SiliconStudio.Core.Mathematics;
9 using SiliconStudio.Core.Serialization.Contents;
10 using SiliconStudio.Paradox.Assets.Texture;
11 using SiliconStudio.Paradox.Effects;
12 using SiliconStudio.Paradox.Graphics;
14 namespace SiliconStudio.
Paradox.Assets.Materials.Nodes
16 [ContentSerializer(typeof(DataContentSerializer<MaterialTextureNode>))]
17 [DataContract(
"MaterialTextureNode")]
42 if (texturePath == null)
43 throw new ArgumentNullException(
"texturePath");
46 TexcoordIndex = texcoordIndex;
52 UsedParameterKey = null;
96 return Sampler.Filtering;
100 Sampler.Filtering = value;
116 return Sampler.AddressModeU;
120 Sampler.AddressModeU = value;
136 return Sampler.AddressModeV;
140 Sampler.AddressModeV = value;
170 public bool AutoAssignKey {
get; set; }
191 public string TextureName
195 return TextureReference != null && TextureReference.Location != null ? TextureReference.Location : null;
MaterialTextureNode(string texturePath, int texcoordIndex, Vector2 scale, Vector2 offset)
Key of an effect parameter.
Base implementation for IMaterialNode.
Represents a two dimensional mathematical vector.
MaterialTextureNode()
Constructor
override string ToString()
MaterialTextureNode(string texturePath, TextureCoordinate texcoordIndex, Vector2 scale, Vector2 offset)
Initializes a new instance of the MaterialTextureNode class.
TextureAddressMode
Identify a technique for resolving texture coordinates that are outside of the boundaries of a textur...
TextureCoordinate
The texture coordinate.
TextureFilter
Filtering options during texture sampling.
The data source is the color white (1, 1, 1, 1). No pre-blend operation.
The data source is the color black (0, 0, 0, 0). No pre-blend operation.
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Base class for texture resources.