public SkyboxManager() { _skyboxSampler = new SamplerHolder { Name = "SkyboxSampler", AddressModeU = SamplerAddressMode.Wrap, AddressModeV = SamplerAddressMode.Clamp, AddressModeW = SamplerAddressMode.Clamp, Filter = SamplerFilter.MinLinear_MagLinear_MipLinear, }; AttachChild(_skyboxSampler); }
public SpriteSamplerSource() { LinearSampler = new SamplerHolder { AddressModeU = SamplerAddressMode.Clamp, AddressModeV = SamplerAddressMode.Clamp, AddressModeW = SamplerAddressMode.Clamp, BorderColor = SamplerBorderColor.TransparentBlack, Filter = SamplerFilter.MinLinear_MagLinear_MipLinear, }; PointSampler = new SamplerHolder { AddressModeU = SamplerAddressMode.Clamp, AddressModeV = SamplerAddressMode.Clamp, AddressModeW = SamplerAddressMode.Clamp, BorderColor = SamplerBorderColor.TransparentBlack, Filter = SamplerFilter.MinPoint_MagPoint_MipPoint, }; AttachChild(LinearSampler); AttachChild(PointSampler); }