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

In shaders, the behavior of accessing matrix values through indices is confusing #10298

Open
Roogephy opened this issue Nov 21, 2024 · 0 comments
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug topic:shaders

Comments

@Roogephy
Copy link

Your Godot version:
godot4_4
Godot Engine v4.4.dev4.official.36e6207bb - https://godotengine.org
WARNING: Can't obtain the XDG decoration manager. Libdecor will be used for drawing CSDs, if available.
at: init (platform/linuxbsd/wayland/wayland_thread.cpp:3731)
OpenGL API 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 - Compatibility - Using Device: Intel - Mesa Intel(R) Graphics (RPL-P)

Issue description:
in shader ,the mat4 and mat3 access through index is not the same behavior.
mat3 is:
Image
but mat4 is:
Image

so mat3 looks like column major order,but mat4 looks like row major order.
is this designed or a bug?
URL to the documentation page:

@Roogephy Roogephy added the bug label Nov 21, 2024
@tetrapod00 tetrapod00 added area:manual Issues and PRs related to the Manual/Tutorials section of the documentation topic:shaders labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug topic:shaders
Projects
None yet
Development

No branches or pull requests

2 participants