use of com.badlogic.gdx.graphics.glutils.ShaderProgram in project bdx by GoranM.
the class MaterialShader method compile.
public MaterialShader compile() {
dispose();
programData = new ShaderProgram(prefix + vertexShader, prefix + fragmentShader);
if (!programData.isCompiled())
throw new RuntimeException("Shader compilation error: " + programData.getLog());
return this;
}
Aggregations