Beam colors

From Cosmoteer Wiki
< ModdingModding/Beam colors
Jump to navigation Jump to search
CalloutIconWarning.png
Work in Progress
This page is currently WORK IN PROGRESS. Some things may be missing.

Feel free to contribute and don't worry about perfection - other editors can make corrections if necessary. Just get creating!

So you want to change the color of, say, the ion beam.

If you are not familiar with RGBA format, learn that first on the internet.

Then make a copy of the whole folder of whatever beam you're choosing to use as a reference for your own beam and modify the copy.

The beam's .rules

Then, you've probably noticed changing the color in here doesn't seem to do anything. It actually affects the particles that appear when the beam hits something.

The shader

PinkishBeamColor.png

This is where you truly change the beam's color.

Consider ion_beam.rules . Its shader file, ion_beam.shader, sits next to it in the ion_beam folder.

There, you'll find two lines that take an RGBA value :

  • float4 colorA = float4(0.5, 0.219, 0.213, 1); //desired color * 0.5
  • float4 red = float4(.5, 0, .5, 1);


It is not yet known exactly how these combine, and there is certainly more potential, but for now you can already change the color of the beam by altering these values (especially the 2nd line) in RGBA format on a 0 to 1 scale (where 0 is 0 and 1 is 255).

Quick example result in the picture on the right.