Back to project page model-explorer.
The source code is released under:
Apache License
If you think the Android project model-explorer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.etaoin.myopengltest.util.shaders; // w ww . j a va2s .c o m /** * The most basic vertex shader. It only renders every object in it's position. */ public class SampleVertexShader implements Shader { @Override public int getType() { return ShaderFactory.SAMPLE_VERTEX_SHADER; } @Override public String getCode() { return "uniform mat4 uMVPMatrix;" + "attribute vec4 vPosition;" + "void main() {" + " gl_Position = uMVPMatrix * vPosition;" + "}"; } }