Flat Shader

Posted By: Damocles_

Flat Shader - 05/13/10 00:49

Hi, can anyone point me to a flat shader.
(just like the "flat shaded" mode in MED, if you are not shure what I refer to)

e.g. Where every Polygon has a flat light-distribution
Posted By: JibbSmart

Re: Flat Shader - 05/13/10 00:58

G'day Damocles!

This should do it:
Code:
MATERIAL* mtlFlat =
{
	effect = "
	technique flatShaded {
		pass p {
			ShadeMode = FLAT;
		}
	}
	";
}



Jibb
Posted By: Damocles_

Re: Flat Shader - 05/13/10 01:03

thanks, works great
© 2024 lite-C Forums