Advertisement

NO_INTERPOLATION for Direct3D 11 Pixel Input

Started by January 19, 2021 12:32 PM
0 comments, last by lucky9999 4 years ago

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]

This topic is closed to new replies.

Advertisement