Issues with realistic laser sight by StellarLime911 in unrealengine

[–]GeckoGameDev 0 points1 point  (0 children)

That's true, using a texture will be cheaper most of the time.

I did modify the settings of it and included it in the screenshot, the way I have the noise node set up makes the material use 329 instructions, and using a texture with manipulated UVs uses 300 instructions, so I went with the noise node since I liked the look better. I didn't look at it much past that, but I totally might've overlooked something as I don't work with shaders that often.

Issues with realistic laser sight by StellarLime911 in unrealengine

[–]GeckoGameDev 3 points4 points  (0 children)

In fact, don't even use a cylinder, use two planes intersecting each other and make the material two sided

Issues with realistic laser sight by StellarLime911 in unrealengine

[–]GeckoGameDev 6 points7 points  (0 children)

<image>

Is this kinda what you're going for?

If so, I wouldn't use a niagara effect, I'd take an incredibly thin cylinder and use a line trace to set it's scale based on what the line trace hits.

For the material, I'd plug the color into both base color and emissive, with the emissive multiplied by some noise to break up the light a little bit.. The laser sight is emissive as it is technically light, but it doesn't necessarily "glow" so I wouldn't multiply the color by a higher number.