Enum InterpolationMode
- Namespace
- Xui.GPU.Shaders.Attributes
- Assembly
- Xui.Core.dll
Specifies the interpolation mode for a shader varying (vertex output / fragment input).
public enum InterpolationMode
Fields
Flat = 2No interpolation - flat shading. The value from the provoking vertex is used for the entire primitive.
Linear = 1Linear interpolation without perspective correction. Values are interpolated linearly in screen space.
Perspective = 0Default perspective-correct interpolation. Values are interpolated with perspective correction across the triangle.