• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Asset - Scripts Get Shader Constants

Bart

WiseBart
Get Shader Constants

This free asset package allows you to get the values of the shader constants as defined by the OpenGL ES spec. It also shows how to get values from the fragment shader using surfaces.
The included script shu_get_shader_constants returns a ds_map with all the values:



This info can be useful to determine the limitations of the graphics:
  • gl_MaxDrawBuffers is the maximum number of render targets
  • gl_MaxTextureImageUnits is the maximum number of samplers in the fragment shader
 
Top