Skip to content

Instantly share code, notes, and snippets.

@andreban
Last active February 24, 2018 16:11
Show Gist options
  • Save andreban/6838f00afadbb85ac7abc64b72c081d9 to your computer and use it in GitHub Desktop.
Save andreban/6838f00afadbb85ac7abc64b72c081d9 to your computer and use it in GitHub Desktop.
Compile a Vertex Shared
int vertexShader = GL20.glCreateShader(GL20.GL_VERTEX_SHADER);
GL20.glShaderSource(vertexShader, vertexShaderSource);
GL20.glCompileShader(vertexShader);
String vertexShaderErrorLog = GL20.glGetShaderInfoLog(vertexShader, 65536);
if (vertexShaderErrorLog.length() != 0) {
System.err.println(
"Vertex shader compile log: \n" + vertexShaderErrorLog);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment