public GVRShaderId getShaderType ( Class < ? extends GVRShader > shaderClass ) { GVRShaderId shaderId = mShaderTemplates . get ( shaderClass ) ; if ( shaderId == null ) { GVRContext ctx = getGVRContext ( ) ; shaderId = new GVRShaderId ( shaderClass ) ; mShaderTemplates . put ( shaderClass , shaderId ) ; shaderId . getTemplate ( ctx ) ; } return shaderId ; }
Retrieves the Material Shader ID associated with the given shader template class .