@Override public void applyParams() { super.applyParams(); createLightViewProjectionMatrix(mLight).toFloatArray(mLightMatrix); GLES20.glUniformMatrix4fv(muLightMatrixHandle, 1, false, mLightMatrix, 0); }
/** * Applies parameters that should be set on the shaders. These are parameters * like time, color, buffer handles, etc. */ public void applyParams() { mVertexShader.setColor(mColor); mVertexShader.setTime(mTime); mVertexShader.applyParams(); mFragmentShader.setColorInfluence(mColorInfluence); mFragmentShader.applyParams(); }
@Override public void applyParams() { super.applyParams(); GLES20.glUniform1f(rtWHandle, mReadTarget.getWidth()); GLES20.glUniform1f(rtHHandle, mReadTarget.getHeight()); } }
@Override public void applyParams() { super.applyParams(); createLightViewProjectionMatrix(mLight).toFloatArray(mLightMatrix); GLES20.glUniformMatrix4fv(muLightMatrixHandle, 1, false, mLightMatrix, 0); }
/** * Applies parameters that should be set on the shaders. These are parameters * like time, color, buffer handles, etc. */ public void applyParams() { mVertexShader.setColor(mColor); mVertexShader.setTime(mTime); mVertexShader.applyParams(); mFragmentShader.setColorInfluence(mColorInfluence); mFragmentShader.applyParams(); }