This widget does not implement any material by default but it allows you to specify your custom vertex and fragment shaders and use them with any 3D geometry in you application. This widget has three predefined shader program parameter names. The first one is
app_MatrixModel. If it is available in your shader code and enabled by UseMatrixModel property of the widget, then your shader will be automatically supplied with current model transformation matrix. The second one is
app_MatrixCamera. If it is available in your shader and enabled by widget's UseMatrixCamera property, then your shader program will be automatically supplied with current camera matrix as well. The matrices are in Mat4 form. In your shader program it should be uniforms of type
mat4 with specified names. And the last predefined parameter is
app_HasTexture with corresponding property UseHasTexture. It should be type
int in your shader and it will be supplied with 1 or 0 depending if there is a texture associated with this widget.