mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-10 09:11:08 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
199758f67f
commit
2867a701af
@@ -41,6 +41,7 @@ struct SlopeDetection
|
||||
bool actived;
|
||||
float normal_z;
|
||||
mat3 volume_world_normal_matrix;
|
||||
vec3 up_direction;
|
||||
};
|
||||
|
||||
uniform vec4 uniform_color;
|
||||
|
||||
@@ -44,6 +44,7 @@ struct SlopeDetection
|
||||
bool actived;
|
||||
float normal_z;
|
||||
mat3 volume_world_normal_matrix;
|
||||
vec3 up_direction;
|
||||
};
|
||||
|
||||
uniform vec4 uniform_color;
|
||||
|
||||
Reference in New Issue
Block a user