Advertisement
francogp

Untitled

Aug 28th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1.         Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
  2.  
  3.         //AMD fix
  4.         config.useOpenGL3(true, 3, 2);
  5.         ShaderProgram.prependVertexCode = "#version 140\n#define varying out\n#define attribute in\n";
  6.         ShaderProgram.prependFragmentCode = "#version 140\n#define varying in\n#define texture2D texture\n#define gl_FragColor fragColor\nout vec4 fragColor;\n";
  7.         //AMD fix
  8.  
  9.         config.useVsync(true);
  10.         config.setWindowedMode(1280, 768);
  11.         new Lwjgl3Application(new LightningBoltTest(), config);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement