>>Here comes the question. When I generated the shader using
>>the shader wizard, I chose Color At Vertice as parameter type,
>>and it gave an integer. What am I supposed to do with that?
>>I would have expected a miColor or something like that.
>>CAV usually have 4 channels and tangeants at least 3. Duh?
If you check out the SPDL generated by the wizard, that parameter gets a texture space picker with a filter attached.
The integer is a texture space index. These values need to be stored in a textures space so they can be properly interpolated across during tessellation.
Go retrieve your data from state->tex_list[i].
cheers -- j