Ejemplo n.º 1
0
 public SkyboxManager()
 {
     _skyboxSampler = new SamplerHolder
     {
         Name         = "SkyboxSampler",
         AddressModeU = SamplerAddressMode.Wrap,
         AddressModeV = SamplerAddressMode.Clamp,
         AddressModeW = SamplerAddressMode.Clamp,
         Filter       = SamplerFilter.MinLinear_MagLinear_MipLinear,
     };
     AttachChild(_skyboxSampler);
 }
Ejemplo n.º 2
0
        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);
        }