LineRenderer2D icon indicating copy to clipboard operation
LineRenderer2D copied to clipboard

cannot implicitly convert from 'float4' to 'struct SurfaceData2D' at line 148 (on d3d11)

Open ismakegame opened this issue 1 year ago • 3 comments

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)

ismakegame avatar Nov 28 '23 08:11 ismakegame

Hi, maybe this fork is helpful for you. @StinkySteak adapted the code to 2021 but I guess there is not so much difference with 2022: https://github.com/StinkySteak/LineRenderer2D

QThund avatar Dec 01 '23 13:12 QThund

Thanks for the credit, but you still havent merge mine 💀

StinkySteak avatar Dec 01 '23 15:12 StinkySteak

Thanks for the credit, but you still havent merge mine 💀

If I merged yours, then the code would not work for previous Unity versions. I would have to create a branch, but honestly I don't know if there is a way to apply your changes to another branch.

QThund avatar Dec 01 '23 23:12 QThund