virtual public void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
        {
            if (StorageFormat != StorageFormats.RGBA16F)
            {
                parameters.Set(BrightnessKey, maxBrightness);
            }
            else
            {
                parameters.Set(BrightnessKey, 1.0f);
            }

            storageTex.ApplySamplingParameters(viewContext, parameters);
        }
Ejemplo n.º 2
0
        override public void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
        {
            if (StorageFormat != StorageFormats.RGBA16F)
            {
                parameters.Set(BrightnessKey, maxBrightness * (float)Math.PI);
            }
            else
            {
                parameters.Set(BrightnessKey, (float)Math.PI);
            }

            storageTex.ApplySamplingParameters(viewContext, parameters);
        }
 public override void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
 {
     CoverageTex?.ApplySamplingParameters(viewContext, parameters);
 }
Ejemplo n.º 4
0
 public abstract void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters);
 public override void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
 {
     VoxelLayout.ApplySamplingParameters(viewContext, parameters);
 }
 public override void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
 {
     parameters.Set(BrightnessKey, 1.0f);
     SolidityTex?.ApplySamplingParameters(viewContext, parameters);
 }
Ejemplo n.º 7
0
 public void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
 {
     parameters.Set(ClipMapskey, ClipMaps);
     parameters.Set(MipMapskey, MipMaps);
     parameters.Set(perMapOffsetScaleKey, viewContext.IsVoxelView? PerMapOffsetScaleCurrent : PerMapOffsetScale);
 }