Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Editor: Several shader functions are not defined in autocomplete (or the manual) #8597

Open
gm-bug-reporter bot opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation are required by this issue ide-bug Bugs with the GameMaker IDE

Comments

@gm-bug-reporter
Copy link

Description

While the functions "float CalcFogFactor(vec4 pos)", "vec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)", "vec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)" and "vec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)" are defined and accessible in vertex shaders, this is not documented or supported by the IDE (not syntax highlighted). This should at least be documented as writing a function with one of these names and parameters would lead to an unexplained compilation error. The same goes for the functions "void DoAlphaTest(vec4 SrcColour)" and "void DoFog(inout vec4 SrcColour, float fogval)" in fragment shaders.

Which version of GameMaker are you reporting this issue for?

IDE v2024.8.1.171 Runtime v2024.8.1.218

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

ced5063a-affc-4b07-8b8d-93f5fdf81ad2

@gm-bug-reporter gm-bug-reporter bot added the ide-bug Bugs with the GameMaker IDE label Dec 2, 2024
@YYDan YYDan changed the title gm shader functions are not defined in the documentation Code Editor: Several shader functions are not defined in autocomplete (or the manual) Dec 3, 2024
@YYDan YYDan added the documentation Improvements or additions to documentation are required by this issue label Dec 3, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Dec 3, 2024
@stuckie
Copy link

stuckie commented Dec 3, 2024

We cannot currently do the autocomplete in the editor, but we can add them to the manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation are required by this issue ide-bug Bugs with the GameMaker IDE
Projects
Status: Backlog
Development

No branches or pull requests

3 participants