Use
A simple script that uses a shader to get the built-in GLSL ES shader constants:
For a complete overview, see the section 7.4 Built-in Constants in The OpenGL ES Shading Language.
The value of _VERSION_ is included out of convenience.
Using the script
Import all files into your project and execute the script once at the start of the game:
map_constants = shu_get_shader_constants();
map_constants now holds a reference to a ds_map with the above values in it.
End User Licence Agreement (EULA).
Initial upload