loadShader static method
Implementation
static Future<FragmentProgram> loadShader(String name) async {
try {
return await FragmentProgram.fromAsset(assetKey(name));
} catch (e) {
error("Failed to load shader: $name");
error(e);
return Future.error(e);
}
}