public int bindShader ( GVRContext context , GVRShaderData material , String vertexDesc ) { String signature = getClass ( ) . getSimpleName ( ) ; GVRShaderManager shaderManager = context . getShaderManager ( ) ; synchronized ( shaderManager ) { int nativeShader = shaderManager . getShader ( signature ) ; if ( nativeShader == 0 ) { nativeShader = addShader ( shaderManager , signature , material ) ; } return nativeShader ; } }
Select the specific vertex and fragment shader to use with this material .