my.material = mat_flat;

You can try that, but I don't think it'll work...

When a model does its lighting, it gets the direction of a face through its vertcies averages. therefore, all normals are interpolated, and provide that smoothness you see (gaurad shading).

You can however write a shader that bypasses this...


xXxGuitar511
- Programmer