VisualShaderNodeCustom._getGlobalCode

Override this method to add shader code on top of the global shader, to define your own standard library of reusable methods, varyings, constants, uniforms, etc. The shader code should be returned as a string, which can have multiple lines (the """ multiline string construct can be used for convenience). Be careful with this functionality as it can cause name conflicts with other custom nodes, so be sure to give the defined entities unique names. You can customize the generated code based on the shader mode (see Shader.mode). Defining this method is optional.

struct VisualShaderNodeCustom
@nogc nothrow
String
_getGlobalCode
(
in long mode
)

Meta