includeReplacer method

String includeReplacer(
  1. dynamic match,
  2. dynamic include
)

Implementation

String includeReplacer(match, include) {
  final string = shaderChunk[include];

  if (string == null) {
    throw ('Can not resolve #include <$include>');
  }

  return resolveIncludes(string);
}