HudShaderSourcesProvider

interface HudShaderSourcesProvider

Provider of HUD shader sources.

Shader sources returned by implementations of this interface can use the following input variables:

  • attribute vec2 aPos – vertex position in 2D space,

  • attribute vec2 aTexCoords – texture coordinates,

  • uniform mat4 uMVPMat – MVP matrix,

  • uniform sampler2D uTex – texture of the atom.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun getShaderSource(shaderType: <Error class: unknown class>): String

Returns shader source for given shaderType.