A test suite should be developed and added to the framework to test the functionality of all gamemaker-specific built-in shader uniforms and constants mentioned on the Shader Constants manual page, as this is an area of functionality that is currently missing from the framework.
These tests were initially intended to be included in the BasicShaderTestSuite proposed in https://github.com/YoYoGames/GM-TestFramework/issues/59 but ended up taking up a sufficiently large amount of an already very large test suite that it made more sense to move them to their own test suite instead, in order to improve readability and granularity of tests.
Requirements
The project should be up to date with 2024.6 release.
It should include tests that cover the following Gamemaker-specific built-in shader uniforms/constants:
MATRIX_VIEW
MATRIX_PROJECTION
MATRIX_WORLD
MATRIX_WORLD_VIEW
MATRIX_WORLD_VIEW_PROJECTION
MATRIX_MAX
MAX_VS_LIGHTS
gm_Matrices[matrix]
gm_LightingEnabled
gm_Lights_Direction[]
gm_Lights_PosRange[]
gm_Lights_Colour
gm_AmbientColour
gm_FogStart
gm_RcpFogRange
gm_PS_FogEnabled
gm_FogColour
gm_VS_FogEnabled
gm_AlphaTestEnabled
gm_AlphaRefValue
Steps To The Task
[x] Create a new test suite for testing built-in shader uniforms/constants
[x] Add facts / theories to test the required uniforms/constants
[x] Ensure tests are working correctly and in-line with documentation
[x] Any errors discovered in GameMaker functionality or documentation during development should be reported as issues in the
[x] Any errors with the framework itself should be reported as issues within this repository
Description
A test suite should be developed and added to the framework to test the functionality of all gamemaker-specific built-in shader uniforms and constants mentioned on the Shader Constants manual page, as this is an area of functionality that is currently missing from the framework.
These tests were initially intended to be included in the BasicShaderTestSuite proposed in https://github.com/YoYoGames/GM-TestFramework/issues/59 but ended up taking up a sufficiently large amount of an already very large test suite that it made more sense to move them to their own test suite instead, in order to improve readability and granularity of tests.
Requirements
The project should be up to date with 2024.6 release.
It should include tests that cover the following Gamemaker-specific built-in shader uniforms/constants:
Steps To The Task