NO_INTERPOLATION for Direct3D 11 Pixel Input

How to declare a fragment that has no interpolation (TEXCOORD0,1,2)

Actually, I don’t understand why the author wrote the pixel shader that way, because if I don’t interpolate the sun color, why do I need to pass the sun color per fragment, we can pass it per frame or per object? right?

[code]

struct PS_INPUT

{

….

NOINTERPOLATION sun_color : TEXCOORD1;
};

[/code]

Published by CelleSports

CelleSports is a Game development, News outlet, and Social Cell community. Build your cells or teams for any game and start communicating efficiently. Join us in building the number one eSport and gaming community in the World. Join Cell eSports

Leave a comment