Fix KVT logo mush: match Energise screen-space SDF AA
aa=2.5/b ignored d(logoUV)/d(px)=logoScale/b, so the softstep was a fixed ~10px band — wider than the dots on a ~55px marble and centres never reached full mask. Use 1.5*logoScale/b like Energise's N/size AA; keep lower placement and lit^2.4 shadow dissolve.
@@ -1018,18 +1018,24 @@ void main() {
1018
1018
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
1019
1019
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
1020
1020
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
1021
// Procedural KVT logo (Energise SDF): white; contribution falls off strongly with marble
1022
// lighting so the mark dissolves into sphere shadow (not a flat grey sticker).
1021
// Procedural KVT logo (Energise SDF): white; contribution falls off with marble lighting
1022
// so the mark dissolves into sphere shadow (not a flat grey sticker).
1023
1023
{
1024
1024
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.
1025
1025
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.
1026
vec2 logoUV = 0.5 + q * 0.50 - vec2(0.0, 0.075);
1026
const float logoScale = 0.50;
1027
vec2 logoUV = 0.5 + q * logoScale - vec2(0.0, 0.075);
1027
1028
float logoMask = 0.0;
1028
1029
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {
1029
float aa = 2.5 / max(min(b.x, b.y), 1.0);
1030
// Energise sampleLingerMask: aa ~= N / sizeInPxOfLogoUV. Here logoUV spans the marble
1031
// via q*logoScale and q=p/b, so d(logoUV)/d(px)=logoScale/b. Old aa=2.5/b ignored that
1032
// factor and always made a ~10px softstep — wider than the dots on a ~55px marble, so
1033
// even feature centres never reached full mask (live "vervaagd" mush). Match Energise
1034
// with ~1.5 screen px of SDF AA.
1035
float aa = 1.5 * logoScale / max(min(b.x, b.y), 1.0);
1030
1036
logoMask = smoothstep(aa, -aa, logoSD(logoUV));
1031
1037
}
1032
// Stronger than lit-only: mask itself shrinks in shadow so marble material shows through.
1038
// Shadow dissolve via lit (kept); geometric mask stays sharp from corrected aa above.
1033
1039
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);
1034
1040
vec3 logoCol = vec3(1.0) * lit;
1035
1041
col.rgb = mix(col.rgb, logoCol, logoAmt);
@@ -1018,18 +1018,24 @@ void main() {1018
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);1018
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);1019
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);1019
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);1020
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));1020
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));1021
// Procedural KVT logo (Energise SDF): white; contribution falls off strongly with marble1021
// Procedural KVT logo (Energise SDF): white; contribution falls off with marble lighting1022
// lighting so the mark dissolves into sphere shadow (not a flat grey sticker).1022
// so the mark dissolves into sphere shadow (not a flat grey sticker).1023
{1023
{1024
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.1024
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.1025
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.1025
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.1026
vec2 logoUV = 0.5 + q * 0.50 - vec2(0.0, 0.075);1026
const float logoScale = 0.50;1027
vec2 logoUV = 0.5 + q * logoScale - vec2(0.0, 0.075);1027
float logoMask = 0.0;1028
float logoMask = 0.0;1028
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {1029
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {1029
float aa = 2.5 / max(min(b.x, b.y), 1.0);1030
// Energise sampleLingerMask: aa ~= N / sizeInPxOfLogoUV. Here logoUV spans the marble1031
// via q*logoScale and q=p/b, so d(logoUV)/d(px)=logoScale/b. Old aa=2.5/b ignored that1032
// factor and always made a ~10px softstep — wider than the dots on a ~55px marble, so1033
// even feature centres never reached full mask (live "vervaagd" mush). Match Energise1034
// with ~1.5 screen px of SDF AA.1035
float aa = 1.5 * logoScale / max(min(b.x, b.y), 1.0);1030
logoMask = smoothstep(aa, -aa, logoSD(logoUV));1036
logoMask = smoothstep(aa, -aa, logoSD(logoUV));1031
}1037
}1032
// Stronger than lit-only: mask itself shrinks in shadow so marble material shows through.1038
// Shadow dissolve via lit (kept); geometric mask stays sharp from corrected aa above.1033
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);1039
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);1034
vec3 logoCol = vec3(1.0) * lit;1040
vec3 logoCol = vec3(1.0) * lit;1035
col.rgb = mix(col.rgb, logoCol, logoAmt);1041
col.rgb = mix(col.rgb, logoCol, logoAmt);@@ -1019,18 +1019,24 @@ void main() {
1019
1019
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
1020
1020
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
1021
1021
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
1022
// Procedural KVT logo (Energise SDF): white; contribution falls off strongly with marble
1023
// lighting so the mark dissolves into sphere shadow (not a flat grey sticker).
1022
// Procedural KVT logo (Energise SDF): white; contribution falls off with marble lighting
1023
// so the mark dissolves into sphere shadow (not a flat grey sticker).
1024
1024
{
1025
1025
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.
1026
1026
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.
1027
vec2 logoUV = 0.5 + q * 0.50 - vec2(0.0, 0.075);
1027
const float logoScale = 0.50;
1028
vec2 logoUV = 0.5 + q * logoScale - vec2(0.0, 0.075);
1028
1029
float logoMask = 0.0;
1029
1030
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {
1030
float aa = 2.5 / max(min(b.x, b.y), 1.0);
1031
// Energise sampleLingerMask: aa ~= N / sizeInPxOfLogoUV. Here logoUV spans the marble
1032
// via q*logoScale and q=p/b, so d(logoUV)/d(px)=logoScale/b. Old aa=2.5/b ignored that
1033
// factor and always made a ~10px softstep — wider than the dots on a ~55px marble, so
1034
// even feature centres never reached full mask (live "vervaagd" mush). Match Energise
1035
// with ~1.5 screen px of SDF AA.
1036
float aa = 1.5 * logoScale / max(min(b.x, b.y), 1.0);
1031
1037
logoMask = smoothstep(aa, -aa, logoSD(logoUV));
1032
1038
}
1033
// Stronger than lit-only: mask itself shrinks in shadow so marble material shows through.
1039
// Shadow dissolve via lit (kept); geometric mask stays sharp from corrected aa above.
1034
1040
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);
1035
1041
vec3 logoCol = vec3(1.0) * lit;
1036
1042
col.rgb = mix(col.rgb, logoCol, logoAmt);
@@ -1019,18 +1019,24 @@ void main() {1019
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);1019
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);1020
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);1020
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);1021
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));1021
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));1022
// Procedural KVT logo (Energise SDF): white; contribution falls off strongly with marble1022
// Procedural KVT logo (Energise SDF): white; contribution falls off with marble lighting1023
// lighting so the mark dissolves into sphere shadow (not a flat grey sticker).1023
// so the mark dissolves into sphere shadow (not a flat grey sticker).1024
{1024
{1025
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.1025
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.1026
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.1026
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.1027
vec2 logoUV = 0.5 + q * 0.50 - vec2(0.0, 0.075);1027
const float logoScale = 0.50;1028
vec2 logoUV = 0.5 + q * logoScale - vec2(0.0, 0.075);1028
float logoMask = 0.0;1029
float logoMask = 0.0;1029
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {1030
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {1030
float aa = 2.5 / max(min(b.x, b.y), 1.0);1031
// Energise sampleLingerMask: aa ~= N / sizeInPxOfLogoUV. Here logoUV spans the marble1032
// via q*logoScale and q=p/b, so d(logoUV)/d(px)=logoScale/b. Old aa=2.5/b ignored that1033
// factor and always made a ~10px softstep — wider than the dots on a ~55px marble, so1034
// even feature centres never reached full mask (live "vervaagd" mush). Match Energise1035
// with ~1.5 screen px of SDF AA.1036
float aa = 1.5 * logoScale / max(min(b.x, b.y), 1.0);1031
logoMask = smoothstep(aa, -aa, logoSD(logoUV));1037
logoMask = smoothstep(aa, -aa, logoSD(logoUV));1032
}1038
}1033
// Stronger than lit-only: mask itself shrinks in shadow so marble material shows through.1039
// Shadow dissolve via lit (kept); geometric mask stays sharp from corrected aa above.1034
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);1040
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);1035
vec3 logoCol = vec3(1.0) * lit;1041
vec3 logoCol = vec3(1.0) * lit;1036
col.rgb = mix(col.rgb, logoCol, logoAmt);1042
col.rgb = mix(col.rgb, logoCol, logoAmt);@@ -1018,18 +1018,24 @@ void main() {
1018
1018
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
1019
1019
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
1020
1020
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
1021
// Procedural KVT logo (Energise SDF): white; contribution falls off strongly with marble
1022
// lighting so the mark dissolves into sphere shadow (not a flat grey sticker).
1021
// Procedural KVT logo (Energise SDF): white; contribution falls off with marble lighting
1022
// so the mark dissolves into sphere shadow (not a flat grey sticker).
1023
1023
{
1024
1024
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.
1025
1025
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.
1026
vec2 logoUV = 0.5 + q * 0.50 - vec2(0.0, 0.075);
1026
const float logoScale = 0.50;
1027
vec2 logoUV = 0.5 + q * logoScale - vec2(0.0, 0.075);
1027
1028
float logoMask = 0.0;
1028
1029
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {
1029
float aa = 2.5 / max(min(b.x, b.y), 1.0);
1030
// Energise sampleLingerMask: aa ~= N / sizeInPxOfLogoUV. Here logoUV spans the marble
1031
// via q*logoScale and q=p/b, so d(logoUV)/d(px)=logoScale/b. Old aa=2.5/b ignored that
1032
// factor and always made a ~10px softstep — wider than the dots on a ~55px marble, so
1033
// even feature centres never reached full mask (live "vervaagd" mush). Match Energise
1034
// with ~1.5 screen px of SDF AA.
1035
float aa = 1.5 * logoScale / max(min(b.x, b.y), 1.0);
1030
1036
logoMask = smoothstep(aa, -aa, logoSD(logoUV));
1031
1037
}
1032
// Stronger than lit-only: mask itself shrinks in shadow so marble material shows through.
1038
// Shadow dissolve via lit (kept); geometric mask stays sharp from corrected aa above.
1033
1039
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);
1034
1040
vec3 logoCol = vec3(1.0) * lit;
1035
1041
col.rgb = mix(col.rgb, logoCol, logoAmt);
@@ -1018,18 +1018,24 @@ void main() {1018
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);1018
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);1019
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);1019
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);1020
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));1020
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));1021
// Procedural KVT logo (Energise SDF): white; contribution falls off strongly with marble1021
// Procedural KVT logo (Energise SDF): white; contribution falls off with marble lighting1022
// lighting so the mark dissolves into sphere shadow (not a flat grey sticker).1022
// so the mark dissolves into sphere shadow (not a flat grey sticker).1023
{1023
{1024
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.1024
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.1025
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.1025
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.1026
vec2 logoUV = 0.5 + q * 0.50 - vec2(0.0, 0.075);1026
const float logoScale = 0.50;1027
vec2 logoUV = 0.5 + q * logoScale - vec2(0.0, 0.075);1027
float logoMask = 0.0;1028
float logoMask = 0.0;1028
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {1029
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {1029
float aa = 2.5 / max(min(b.x, b.y), 1.0);1030
// Energise sampleLingerMask: aa ~= N / sizeInPxOfLogoUV. Here logoUV spans the marble1031
// via q*logoScale and q=p/b, so d(logoUV)/d(px)=logoScale/b. Old aa=2.5/b ignored that1032
// factor and always made a ~10px softstep — wider than the dots on a ~55px marble, so1033
// even feature centres never reached full mask (live "vervaagd" mush). Match Energise1034
// with ~1.5 screen px of SDF AA.1035
float aa = 1.5 * logoScale / max(min(b.x, b.y), 1.0);1030
logoMask = smoothstep(aa, -aa, logoSD(logoUV));1036
logoMask = smoothstep(aa, -aa, logoSD(logoUV));1031
}1037
}1032
// Stronger than lit-only: mask itself shrinks in shadow so marble material shows through.1038
// Shadow dissolve via lit (kept); geometric mask stays sharp from corrected aa above.1033
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);1039
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);1034
vec3 logoCol = vec3(1.0) * lit;1040
vec3 logoCol = vec3(1.0) * lit;1035
col.rgb = mix(col.rgb, logoCol, logoAmt);1041
col.rgb = mix(col.rgb, logoCol, logoAmt);@@ -1019,18 +1019,24 @@ void main() {
1019
1019
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
1020
1020
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
1021
1021
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
1022
// Procedural KVT logo (Energise SDF): white; contribution falls off strongly with marble
1023
// lighting so the mark dissolves into sphere shadow (not a flat grey sticker).
1022
// Procedural KVT logo (Energise SDF): white; contribution falls off with marble lighting
1023
// so the mark dissolves into sphere shadow (not a flat grey sticker).
1024
1024
{
1025
1025
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.
1026
1026
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.
1027
vec2 logoUV = 0.5 + q * 0.50 - vec2(0.0, 0.075);
1027
const float logoScale = 0.50;
1028
vec2 logoUV = 0.5 + q * logoScale - vec2(0.0, 0.075);
1028
1029
float logoMask = 0.0;
1029
1030
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {
1030
float aa = 2.5 / max(min(b.x, b.y), 1.0);
1031
// Energise sampleLingerMask: aa ~= N / sizeInPxOfLogoUV. Here logoUV spans the marble
1032
// via q*logoScale and q=p/b, so d(logoUV)/d(px)=logoScale/b. Old aa=2.5/b ignored that
1033
// factor and always made a ~10px softstep — wider than the dots on a ~55px marble, so
1034
// even feature centres never reached full mask (live "vervaagd" mush). Match Energise
1035
// with ~1.5 screen px of SDF AA.
1036
float aa = 1.5 * logoScale / max(min(b.x, b.y), 1.0);
1031
1037
logoMask = smoothstep(aa, -aa, logoSD(logoUV));
1032
1038
}
1033
// Stronger than lit-only: mask itself shrinks in shadow so marble material shows through.
1039
// Shadow dissolve via lit (kept); geometric mask stays sharp from corrected aa above.
1034
1040
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);
1035
1041
vec3 logoCol = vec3(1.0) * lit;
1036
1042
col.rgb = mix(col.rgb, logoCol, logoAmt);
@@ -1019,18 +1019,24 @@ void main() {1019
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);1019
float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);1020
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);1020
float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);1021
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));1021
col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));1022
// Procedural KVT logo (Energise SDF): white; contribution falls off strongly with marble1022
// Procedural KVT logo (Energise SDF): white; contribution falls off with marble lighting1023
// lighting so the mark dissolves into sphere shadow (not a flat grey sticker).1023
// so the mark dissolves into sphere shadow (not a flat grey sticker).1024
{1024
{1025
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.1025
// Larger scale => smaller on-marble mark; y offset lowers it so top dots stay inside.1026
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.1026
// q.y > 0 is marble bottom (Energise SVG y-down); subtracting logoUV.y moves the mark down.1027
vec2 logoUV = 0.5 + q * 0.50 - vec2(0.0, 0.075);1027
const float logoScale = 0.50;1028
vec2 logoUV = 0.5 + q * logoScale - vec2(0.0, 0.075);1028
float logoMask = 0.0;1029
float logoMask = 0.0;1029
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {1030
if (logoUV.x > 0.16 && logoUV.x < 0.84 && logoUV.y > 0.02 && logoUV.y < 0.99) {1030
float aa = 2.5 / max(min(b.x, b.y), 1.0);1031
// Energise sampleLingerMask: aa ~= N / sizeInPxOfLogoUV. Here logoUV spans the marble1032
// via q*logoScale and q=p/b, so d(logoUV)/d(px)=logoScale/b. Old aa=2.5/b ignored that1033
// factor and always made a ~10px softstep — wider than the dots on a ~55px marble, so1034
// even feature centres never reached full mask (live "vervaagd" mush). Match Energise1035
// with ~1.5 screen px of SDF AA.1036
float aa = 1.5 * logoScale / max(min(b.x, b.y), 1.0);1031
logoMask = smoothstep(aa, -aa, logoSD(logoUV));1037
logoMask = smoothstep(aa, -aa, logoSD(logoUV));1032
}1038
}1033
// Stronger than lit-only: mask itself shrinks in shadow so marble material shows through.1039
// Shadow dissolve via lit (kept); geometric mask stays sharp from corrected aa above.1034
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);1040
float logoAmt = e * logoMask * pow(clamp(lit / 0.92, 0.0, 1.0), 2.4);1035
vec3 logoCol = vec3(1.0) * lit;1041
vec3 logoCol = vec3(1.0) * lit;1036
col.rgb = mix(col.rgb, logoCol, logoAmt);1042
col.rgb = mix(col.rgb, logoCol, logoAmt);