コード例 #1
0
        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);
        }
コード例 #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);
        }
コード例 #3
0
 public override void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
 {
     CoverageTex?.ApplySamplingParameters(viewContext, parameters);
 }
コード例 #4
0
 public abstract void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters);
 public override void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
 {
     VoxelLayout.ApplySamplingParameters(viewContext, parameters);
 }
コード例 #6
0
 public override void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
 {
     parameters.Set(BrightnessKey, 1.0f);
     SolidityTex?.ApplySamplingParameters(viewContext, parameters);
 }
コード例 #7
0
 public void ApplySamplingParameters(VoxelViewContext viewContext, ParameterCollection parameters)
 {
     parameters.Set(ClipMapskey, ClipMaps);
     parameters.Set(MipMapskey, MipMaps);
     parameters.Set(perMapOffsetScaleKey, viewContext.IsVoxelView? PerMapOffsetScaleCurrent : PerMapOffsetScale);
 }