Esempio n. 1
0
    @Override
    public void applyParams() {
      super.applyParams();

      createLightViewProjectionMatrix(mLight).toFloatArray(mLightMatrix);
      GLES20.glUniformMatrix4fv(muLightMatrixHandle, 1, false, mLightMatrix, 0);
    }
Esempio n. 2
0
    @Override
    public void initialize() {
      super.initialize();

      muModelMatrix = (RMat4) addUniform(DefaultShaderVar.U_MODEL_MATRIX);
      muLightMatrix = (RMat4) addUniform(U_MVP_LIGHT, DataType.MAT4);
      maPosition = (RVec4) addAttribute(DefaultShaderVar.A_POSITION);
    }
Esempio n. 3
0
 @Override
 public void setLocations(int programHandle) {
   super.setLocations(programHandle);
   muLightMatrixHandle = getUniformLocation(programHandle, U_MVP_LIGHT);
 }