Steps to reproduce:
- Open the attached project
- Open the Light2D asset in the ShaderGraph window
- Observe the present Vertex and Fragment blocks (Project is using a freshly created default Light2D graph asset)
- In the Shader Graph window's Inspector tab, switch the Material property to "Shadow Caster 2D"
- Using Shader Graph's Inspector switch the Material Property back to Light2D
- Observe the Vertex and Fragment blocks
Actual results: Graph received superfluous Vertex and Fragment blocks
Expected results: Vertex and Fragment blocks are identical to ones that were observed in Step 3
Reproducible with versions: 6000.7.0b1, 6000.7.0b2, 7000.0.0a1
Can’t test with versions: 6000.0.84f1, 6000.3.24f1, 6000.6.2f1, 6000.7.0a6 (Light2D ShaderGraph material target not available)
Tested on (OS): macOS 26.6.2
Notes:
- Newly created Light2D graph asset has "Position" Vertex block and "Color", "Shadow Color" and "Volumetric Color" Fragment blocks
- After switching the material target via Shader Graph's Inspector tab, Light2D graph has "Position", "Normal" and "Tangent" Vertex blocks, as well as "Base Color", "Color", "Shadow Color" and "Volumetric Color" Fragment blocks