fragmentMainConstants
expect 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(source)
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:
c_instance
c_element
c_screenPosition
c_contourPosition
c_boundsPosition
c_boundsSize
actual fun fragmentMainConstants(instance: String, element: String, screenPosition: String, contourPosition: String, boundsPosition: String, boundsSize: String): String(source)
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:
c_instance
c_element
c_screenPosition
c_contourPosition
c_boundsPosition
c_boundsSize
actual fun fragmentMainConstants(instance: String, element: String, screenPosition: String, contourPosition: String, boundsPosition: String, boundsSize: String): String(source)
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:
c_instance
c_element
c_screenPosition
c_contourPosition
c_boundsPosition
c_boundsSize