From 2867a701afd678a0ad032628493dd10b93b5ca0c Mon Sep 17 00:00:00 2001 From: harrierpigeon Date: Tue, 6 Oct 2026 13:59:28 -0500 Subject: [PATCH] Belt printer: declare up_direction in both phong fragment shaders #16195 added slope.up_direction to the SlopeDetection uniform struct of phong.vs (110 and 140) but not to phong.fs, so the two stages declared the uniform with different types and the program failed to link: "unable to load shaders: phong" at startup, and studio lighting / realistic phong rendering fell back. gouraud.fs already carries the member. Co-Authored-By: Claude Fable 5.1 --- resources/shaders/110/phong.fs | 1 + resources/shaders/140/phong.fs | 1 + 2 files changed, 2 insertions(+) diff --git a/resources/shaders/110/phong.fs b/resources/shaders/110/phong.fs index a47a24fdea..7d1e7bfe8c 100644 --- a/resources/shaders/110/phong.fs +++ b/resources/shaders/110/phong.fs @@ -41,6 +41,7 @@ struct SlopeDetection bool actived; float normal_z; mat3 volume_world_normal_matrix; + vec3 up_direction; }; uniform vec4 uniform_color; diff --git a/resources/shaders/140/phong.fs b/resources/shaders/140/phong.fs index 809621b76d..4cfae1e03e 100644 --- a/resources/shaders/140/phong.fs +++ b/resources/shaders/140/phong.fs @@ -44,6 +44,7 @@ struct SlopeDetection bool actived; float normal_z; mat3 volume_world_normal_matrix; + vec3 up_direction; }; uniform vec4 uniform_color;