鏡像自
https://github.com/luanti-org/luanti.git
已同步 2025-12-22 22:55:28 +01:00
Fix wrong normal shading for objects (apply transform)
此提交包含在:
@@ -104,9 +104,9 @@ void main(void)
|
||||
#else
|
||||
// This is intentional comparison with zero without any margin.
|
||||
// If normal is not equal to zero exactly, then we assume it's a valid, just not normalized vector
|
||||
vIDiff = length(inVertexNormal) == 0.0
|
||||
vIDiff = length(vNormal) == 0.0
|
||||
? 1.0
|
||||
: directional_ambient(normalize(inVertexNormal));
|
||||
: directional_ambient(normalize(vNormal));
|
||||
#endif
|
||||
|
||||
vec4 color = inVertexColor;
|
||||
|
||||
新增問題並參考
封鎖使用者