Companion

object Companion

Functions

drawerUniforms
Link copied to clipboard
common
fun drawerUniforms(contextBlock: Boolean = true, styleBlock: Boolean = true): String

This granule is used to set up Drawer uniform declarations. It declares uniforms for transformations and DrawStyle. This is used in fragment and vertex shaders.

fun drawerUniforms(contextBlock: Boolean = true, styleBlock: Boolean = true): String
fun drawerUniforms(contextBlock: Boolean = true, styleBlock: Boolean = true): String

This granule is used to set up Drawer uniform declarations. It declares uniforms for transformations and DrawStyle. This is used in fragment and vertex shaders.

fragmentMainConstants
Link copied to clipboard
common
fun fragmentMainConstants(instance: String = "v_instance", element: String = "0", screenPosition: String = "gl_FragCoord.xy / u_contentScale", contourPosition: String = "0.0", boundsPosition: String = "vec3(0.0)", boundsSize: String = "vec3(0.0)"): String

This granule is used inside the main() function of fragment shaders to set up constants that are part of the shade style language. It sets up:

primitiveTypes
Link copied to clipboard
common
fun primitiveTypes(type: String): String

This granule is to set up definitions for primitive types.

vertexMainConstants
Link copied to clipboard
common
fun vertexMainConstants(instance: String = "gl_InstanceID", element: String = "0"): String

This granule is used inside the main() function of vertex shaders to set up constants that are part of the shade style language.

Properties

postVertexTransform
Link copied to clipboard
val postVertexTransform: String

This granule is used in the main function of a vertex shader. It assigns values to out-varyings declared in transformVaryingOut. It is used right after ShadeStructure.vertexTransform is inserted into the shader template.

val postVertexTransform: String

This granule is used in the main function of a vertex shader. It assigns values to out-varyings declared in transformVaryingOut. It is used right after ShadeStructure.vertexTransform is inserted into the shader template.

val postVertexTransform: String

This granule is used in the main function of a vertex shader. It assigns values to out-varyings declared in transformVaryingOut. It is used right after ShadeStructure.vertexTransform is inserted into the shader template.

preVertexTransform
Link copied to clipboard
val preVertexTransform: String

This granule is used in the main function of a vertex shader. It sets up declarations of transformable variables in the shade style language. It is used right before ShadeStructure.vertexTransform is inserted into the shader template.

val preVertexTransform: String

This granule is used in the main function of a vertex shader. It sets up declarations of transformable variables in the shade style language. It is used right before ShadeStructure.vertexTransform is inserted into the shader template.

val preVertexTransform: String

This granule is used in the main function of a vertex shader. It sets up declarations of transformable variables in the shade style language. It is used right before ShadeStructure.vertexTransform is inserted into the shader template.

transformVaryingIn
Link copied to clipboard
val transformVaryingIn: String

This granule is used in the preamble of a fragment shader. It sets up the declarations of in-varyings holding transformations of position and normal.

val transformVaryingIn: String

This granule is used in the preamble of a fragment shader. It sets up the declarations of in-varyings holding transformations of position and normal.

val transformVaryingIn: String

This granule is used in the preamble of a fragment shader. It sets up the declarations of in-varyings holding transformations of position and normal.

transformVaryingOut
Link copied to clipboard
val transformVaryingOut: String

This granule is used in the preamble of a vertex shader. It sets up the declarations of out-varyings holding transformations of position and normal.

val transformVaryingOut: String

This granule is used in the preamble of a vertex shader. It sets up the declarations of out-varyings holding transformations of position and normal.

val transformVaryingOut: String

This granule is used in the preamble of a vertex shader. It sets up the declarations of out-varyings holding transformations of position and normal.