However, have you an idea how to improve the interface ? Instead of use an INT value to choose the corner type, It will be interesting to have a list that contain values like: None, Beveled, Rounded. Is it possible with OSL ?
@arketip: in principle this is possible in osl by adding metadata to shader parameters. theosl language spec even gives examples of how to indicate that a paramter is an enumeration. this metadata is explicitely intended to help rendering systems show sockets in an appropriate way but alas, Blender does not (yet ?) supports this.