mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 08:17:49 -06:00
Make background color a uniform
CURA-1601
This commit is contained in:
parent
66f8a62e6c
commit
4e3f4162c2
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,7 @@ fragment =
|
|||
|
||||
uniform vec2 u_offset[9];
|
||||
|
||||
uniform vec4 u_background_color;
|
||||
uniform float u_outline_strength;
|
||||
uniform vec4 u_outline_color;
|
||||
|
||||
|
@ -40,7 +41,7 @@ fragment =
|
|||
kernel[3] = 1.0; kernel[4] = -4.0; kernel[5] = 1.0;
|
||||
kernel[6] = 0.0; kernel[7] = 1.0; kernel[8] = 0.0;
|
||||
|
||||
vec4 result = vec4(0.965, 0.965, 0.965, 1.0);
|
||||
vec4 result = u_background_color;
|
||||
vec4 layer0 = texture2D(u_layer0, v_uvs);
|
||||
vec4 layer2 = texture2D(u_layer2, v_uvs);
|
||||
|
||||
|
@ -70,6 +71,7 @@ u_layer0 = 0
|
|||
u_layer1 = 1
|
||||
u_layer2 = 2
|
||||
u_layer3 = 3
|
||||
u_background_color = [0.965, 0.965, 0.965, 1.0]
|
||||
u_outline_strength = 1.0
|
||||
u_outline_color = [0.05, 0.66, 0.89, 1.0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue