Page 1 of 1

Shader file that controls Ghost entities?

Posted: Thu Aug 20, 2020 5:18 am
by Taurondir
In 0.18 I could change values in "sprite-ycocg.frag" and mess with what the ghost color would look like.
I can't seem to change what I *think* should do something, as nothing seems to happen (basically I just alter number values and see what happens.

Does anyone know what effects the color of ghost entities? I can't find much info on Factorio shader files, so I'm going by a lot of guesswork and testing.

Thank you for any info.

---

ie in 0.18 there was a line "fragColor = YCoCgToRGB(param, alpha) * max(vTint, vec4(0.2, 0.1, 0.2, 0.5));" and i changed it to
"fragColor = YCoCgToRGB(param, alpha) * max(vTint, vec4(1.0, 0.1, 0.1, 0.5));" and ended up with "red" colored ghosts ...

but the 1.0 files have very different lines, so Im stuck for now.