This implies that you have a SIMPLEX_GRAY material parameter.
Usually you’d have a Boolean SimplexGray material param and the notation should be (in standard material)
However with shader nodes, you just have to declare SimplexGrey as a material parameter and then use it in a condition
for example
ShaderNode MyShaderNode{
Definition: whatever
Condition : SimplexGray //<- that's the important part.
InputMapping{
...
}
OutputMapping{
...
}
}
In the generated shader, all things relative to this shaderNode will be surrounded by a
#ifdef SIMPLEXGRAY" //note the uppercase.
And of course the Define will be defined if the parameter has been set
If you want to reference this define in your code for w/e reason you have to reference it in uppercase.
Note that the type of SimplexGrey can be anything, not necessarily a Boolean.