# ValueShader class

Namespace: [Grasshopper2.Imaging.Raycasting](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.raycasting.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public abstract class ValueShader
```

Base class for all value shaders.

**Derived types:** [ConstantValueShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.constantvalueshader.md), [DelegateValueShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.delegatevalueshader.md), [EquationValueShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.equationvalueshader.md), [GradientDisc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.gradientdisc.md), [GradientLinear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.gradientlinear.md), [GradientParticle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.gradientparticle.md), [GradientPolar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.gradientpolar.md), [GradientRadial](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.gradientradial.md), [GradientSegments](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.gradientsegments.md), [NoiseSimplexShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.noisesimplexshader.md), [ValueShaderModifier](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.valueshadermodifier.md)

## Methods

- [Dilate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.valueshader/dilate.md): Apply a dilation (or scaling) transformation to this shader.
- [Flip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.valueshader/flip.md): (2 overloads) Repeat and flip a value within a [0, limit] domain.
- [Rotate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.valueshader/rotate.md): Apply a rotation transformation to this shader.
- [Transform](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.valueshader/transform.md): Apply a custom transformation to this shader.
- [Translate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.valueshader/translate.md): Apply a translation transformation to this shader.
- [ValueAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.valueshader/valueat.md): Evaluate this shader at a specific ray location.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.valueshader/op-implicit.md): (static) Create a constant value shader.
