logger.warn("Could not load OpenCL kernel!");
throw new Error("Could not load OpenCL kernel!");
}
ByteArrayOutputStream out = new ByteArrayOutputStream();
PP pp = new PP();
pp.define("AMBIENT_OCCLUSION", "AMBIENT_OCCLUSION");
//pp.define("RNGTEST", "RNGTEST");
if (pp.preprocess(resourceName, basePath, in, out, System.err)) {
String kernel = new String(out.toByteArray());
return kernel;
}
} catch (IOException e) {