Camouflage Export
Posted: Sun Sep 29, 2024 12:17 pm
I just created camouflage but i can export it, because in game files is just red and green
Code: Select all
// rextimmy gets full credit for figuring out how mixing works!
vec4 applyCamo(vec4 cc, vec4 camoTex) {
vec4 ac = armorcolor;
cc = ac;
cc = mix(cc, c0, camoTex.r * c0.a);
cc = mix(cc, c1, camoTex.g * c1.a);
cc = mix(cc, c2, camoTex.b * c2.a);
cc = mix(cc, c3, camoTex.a * c3.a);
return cc;
}
Code: Select all
colors = [
[82 / 255, 72 / 255, 51 / 255, 0.0], # usa (0)
[82 / 255, 72 / 255, 51 / 255, 0.0], # uk (1)
[61 / 255, 62 / 255, 42 / 255, 0.0], # china (2)
[15 / 255, 36 / 255, 36 / 255, 0.0], # czech (3)
[15 / 255, 36 / 255, 36 / 255, 0.0], # france (4)
[90 / 255, 103 / 255, 94 / 255, 0.0], # germany (5)
[15 / 255, 36 / 255, 36 / 255, 0.0], # japan (6)
[15 / 255, 36 / 255, 36 / 255, 0.0], # poland (7)
[61 / 255, 62 / 255, 42 / 255, 0.0], # ussr (8)
[15 / 255, 36 / 255, 36 / 255, 0.0], # sweden (9)
[15 / 255, 36 / 255, 36 / 255, 0.0] # italy (10)
]