- Mar 20, 2023
- 293
- 50
After compiling a fence model, it has flat shading. Which shader parameters do I use to make the lighting smooth?
The model in question:

VertexLitGeneric
{
$basetexture "tools/toolsblack"
%keywords "tf"
$model 1
$phong 1
$bumpmap "dev/flat_normal"
$phongexponent 5
$phongboost 1
$phongfresnelranges "[0 0.5 1]"
}
{
$basetexture "tools/toolsblack"
%keywords "tf"
$model 1
$phong 1
$bumpmap "dev/flat_normal"
$phongexponent 5
$phongboost 1
$phongfresnelranges "[0 0.5 1]"
}

Last edited: