moving shader code to java file