LineRenderer2D
LineRenderer2D copied to clipboard
Scripts for rendering pixel-perfect GPU-calculated lines in 2D (Unity URP 2D Renderer).
I downloaded the repo and copied the Assets/LineRenderer2D folder to my project. I fixed the shader errors using [this commit](https://github.com/QThund/LineRenderer2D/pull/4/commits/5a886a2eed1cfa122b26c40b804763d19c705a31). I put MultiLineRenderer2D prefab to the scene and adjusted the...
Hello, sorry I am terrible with shaders, but I am getting this error with several files, specifically these: `Couldn't open include file 'Assets/LineRenderer2D/Shaders/S_BresenhamLine.hlsl'.` `Couldn't open include file 'Assets/LineRenderer2D/Shaders/S_BresenhamMultiLine.hlsl'.` Any advice...
unity 2022.3.11 urp2d Shader error in 'Game/S_BresenhamMultiLineRenderer2D': 'CombinedShapeLightShared': cannot implicitly convert from 'float4' to 'struct SurfaceData2D' at line 148 (on d3d11)
Currently using 2023.2. The provided components work fine when not part of any canvas, but when put on a canvas, the gizmos will show the correct end points but the...
To make this work in Unity 2021.3 I had to replace all instances of ``` if (_IsUnlit == 0.0f) { // Lighting finalColor = CombinedShapeLightShared(finalColor, maskColor, i.screenPos); } ``` with:...
fix shader error by adding Zero Initialize & more finalColor adjustment credit to: johste93
Outline?
Would there be a performant way of adding an outline? Checking all neighboring pixels with IsPixelInLine_float seem to be a lot of work.