On 22/01/2016 at 07:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Windows ;
Language(s) : C++ ;
---------
Hello Cinema community!
Now I start working on Cinema UI integration with my shader system. Many things are clear and thanks for that to developers! But there is one issue:
When I write
SHADERLINK ID_BSDF_SHADER { }
it then displays as shown on the Figure 1 :
http://www.dropbox.com/s/h7f6dzfgwx4b6j4/005.jpg?dl=0
Based on Cinema's ShaderData class I have created a shader of my custom type "engineBSDF" (which has many parameters similar to the concept of Cinema material).
I have also created "engineMaterial" based on Cinema's MaterialData class (which has many layers which can be of only engineBSDF type). And only this engineMaterial can be applied to scene objects.
In the res file corresponding to engineMaterial I have written several SHADERLINKs that are supposed to be used to connect engineBSDF as layers to engineMaterial.
But SHADERLINK produces in GUI 3 clickable buttons:
- a button (where you can select one of many shader types) (#1 on Fig 1)
- a long button with name of shader (#2 on Fig 1)
- button with "..." (#3 on Fig 1).
Basically I don't want #2 and #3 to be there. Or at least it is good to choose my preferred shader type when user clicks #2 or #3 rather than Cinema's bitmap file.
What flags for SHADERLINK should I use and how?
Thanks a lot!