Last active
February 24, 2018 16:11
-
-
Save andreban/6838f00afadbb85ac7abc64b72c081d9 to your computer and use it in GitHub Desktop.
Compile a Vertex Shared
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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