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; /*from w w w .jav a2s . c o m*/ /** * The most simple fragment shader. Only renders the color of the objects. */ public class SampleFragmentShader implements Shader { @Override public int getType() { return ShaderFactory.SAMPLE_FRAGMENT_SHADER; } @Override public String getCode() { return "precision mediump float;" + "uniform vec4 vColor;" + "void main() {" + " gl_FragColor = vColor;" + "}"; } }