BoatAttack icon indicating copy to clipboard operation
BoatAttack copied to clipboard

Access violation crash when using PlanerReflections.cs

Open Zundrium opened this issue 5 years ago • 1 comments

I tried to use the PlanerReflections pass in a simple project (5.3.0 branch).

The steps I took to make it crash:

  • Added the PlanerReflections.cs script.
  • Removed the target and unused usings.
  • Placed the Monobehaviour on a Camera.
  • Made a shadergraph material using _PlanarReflectionTexture with Screen UV as color.
  • Applied it to a plane.
  • Added an empty terrain.

It's a pretty heavy error: Read from location 0000000000000028 caused an access violation.. Not sure where it comes from.

Any idea what this could be? Would love to use the extra pass!

Reproduced this in 2018.3, 2019.1 and 2019.2. LWRP 4.10, 5.2.3 and 5.6.1.

Zundrium avatar Mar 06 '19 16:03 Zundrium

Hmm, will look into this, recently(like last week) the ScriptableRenderPass system has gone under heavy refactor which makes the whole system much nicer to use, I've done a first pass at updating the PlanarReflections to it but want to spend some more time cleaning it up, I'll make sure I test out this setup to see if I can repo.

Thanks

Verasl avatar Mar 11 '19 10:03 Verasl