Back to project page FxCameraApp.
The source code is released under:
MIT License
If you think the Android project FxCameraApp 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.af.experiments.FxCameraApp.shaders; /*from w w w . j a va 2 s .c o m*/ public class GlEmbossShader extends GlThreex3ConvolutionShader { private float mIntensity; public GlEmbossShader() { super(); setIntensity(3f); } protected String mShaderName = "Emboss"; public String getName() { return mShaderName; } public float getIntensity() { return mIntensity; } public void setIntensity(final float intensity) { mIntensity = intensity; setConvolutionKernel(new float[]{ intensity * -2f, -intensity, 0f, -intensity, 1f, intensity, 0f, intensity, intensity * 2f }); } }