mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Fixed darker colors of objects inside multi-material gizmo when objects are mirrored.
This commit is contained in:
parent
9651ff19ef
commit
0f9a9de745
2 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,8 @@ uniform vec4 uniform_color;
|
|||
varying vec3 clipping_planes_dots;
|
||||
varying vec4 model_pos;
|
||||
|
||||
uniform bool volume_mirrored;
|
||||
|
||||
void main()
|
||||
{
|
||||
if (any(lessThan(clipping_planes_dots, ZERO)))
|
||||
|
@ -34,6 +36,9 @@ void main()
|
|||
triangle_normal = -triangle_normal;
|
||||
#endif
|
||||
|
||||
if (volume_mirrored)
|
||||
triangle_normal = -triangle_normal;
|
||||
|
||||
// First transform the normal into camera space and normalize the result.
|
||||
vec3 eye_normal = normalize(gl_NormalMatrix * triangle_normal);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue