🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

NO_INTERPOLATION for Direct3D 11 Pixel Input

Started by
0 comments, last by lucky9999 3 years, 5 months 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