orels1 / orels-Unity-Shaders

A collection of practical Unity shaders for your next project
https://shaders.orels.sh
Other
168 stars 13 forks source link

UV-Space noise support for Laser Shader [ORL-59] #54

Closed orels1 closed 7 months ago

orels1 commented 7 months ago

Laser shader currently only supports Local and World space.

While that works for most cases, it doesnt work well for Line Renderers. As those generate meshes in runtime by adjusting their vertex positions. This causes the noise to constantly move on the surface of the laser, which might be undesireable.

A solution to this is to use UV space for Line Renderers. As they are, by definition, 2D - the 3rd dimension doesn't matter and UVs can be used without any downsides.


Automatically created from Linear (#59)

via LinearSync