Fix the shader warnings for gle3 build for webgl please - (fix in message)

Avatar
  • updated
  • Fixed

Building for webgl in 2022 LTS give various shader warnings about protentially unitialized variables (tRadial) in cgcore.inc (on gle3)

FYI I believe the cause for this is in Triangle Core.cginc if you have local AA quality set to off.

Because then tRadial is not initialised in GetRadialMask before it exits. Simply adding a line to set it to 0 say, removes the warning.

Reporting a bug? please specify Unity version:
2022.3.41
Reporting a bug? please specify Shapes version:
4.3.1
Reporting a bug? please specify Render Pipeline:
URP
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Fixed

thanks for the heads up, it's been fixed now!

Avatar
Freya Holmér creator
  • Answer
  • Fixed

thanks for the heads up, it's been fixed now!