Table of Contents

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 = 2

No interpolation - flat shading. The value from the provoking vertex is used for the entire primitive.

Linear = 1

Linear interpolation without perspective correction. Values are interpolated linearly in screen space.

Perspective = 0

Default perspective-correct interpolation. Values are interpolated with perspective correction across the triangle.