activeMaterial = null;
}
private GLSLMaterial prepareAndStoreShaderProgramInstance(String title, ShaderParameters params) {
String uri = "engine:" + title;
Shader shader = Assets.getShader(uri);
checkNotNull(shader, "Failed to resolve %s", uri);
shader.recompile();
GLSLMaterial material = Assets.generateAsset(new AssetUri(AssetType.MATERIAL, "engine:prog." + title), new MaterialData(shader), GLSLMaterial.class);
material.setShaderParameters(params);
return material;
}