Open
Description
Tested versions
4.4, 4.5
System information
Godot v4.4.stable.mono - EndeavourOS SMP PREEMPT_DYNAMIC Fri, 09 May 2025 17:36:18 +0000 on Wayland - X11 display driver, Multi-window, 1 monitor - Vulkan (Mobile) - integrated AMD Radeon Graphics (RADV RENOIR) - AMD Ryzen 7 4800U with Radeon Graphics (16 threads)
Issue description
mat2/mat3/mat4 uniform parameter of newly created ShaderMaterial is zero matrix instead of identity matrix.
Video_2025-05-18_21-48-38.mp4
Steps to reproduce
- Create a ShaderMaterial
- Load a shader file with mat2/mat3/mat4 uniform
- Then the uniform parameter is actually zero matrix though it's identity matrix in the inspector, unless you reload the scene or modify the uniform parameter