I've made a HLSL shader (fx format) and would like to add a enum/list paremeter to its UI - as a better alternative to the list of boolean flags.
So instead of :
- [x] "Use custom map"
- [x] "Use custom map alpha"
- [x] "Use diffuse alpha"
- [x] "Use specular alpha"
- [x] "Use normal alpha"
have:
- Source: [ "Use custom map" ]
with all 5 choices and the index to selected item on the code level.
"DirectX Standard Annotations and Semantics Reference" mentions about the ListPicker widget but I can't find any example or description how to use it.
The questions are:
- Is it possible to have a custom dropdown-like widget in the shader's UI?
- How to achieve it?