forked from bartvdbraak/blender
fix [#26600] TexturedSolid + Curve: Specular affecting other materials
This commit is contained in:
parent
f08a227f93
commit
21e0eff897
@ -328,6 +328,7 @@ static int set_draw_settings_cached(int clearcache, int textured, MTFace *texfac
|
|||||||
|
|
||||||
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, spec);
|
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, spec);
|
||||||
glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
|
glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
|
||||||
|
glMateriali(GL_FRONT_AND_BACK, GL_SHININESS, CLAMPIS(ma->har, 0, 128));
|
||||||
glEnable(GL_LIGHTING);
|
glEnable(GL_LIGHTING);
|
||||||
glEnable(GL_COLOR_MATERIAL);
|
glEnable(GL_COLOR_MATERIAL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user