alelievr / HDRP-Custom-Passes

A bunch of custom passes made for HDRP
MIT License
1.25k stars 136 forks source link

Only one object remains selected on run #10

Closed noncom closed 4 years ago

noncom commented 4 years ago

Trying to run the Selection effect scene from the sample, without changing anything at all, in Unity 2019.3.0b6 results in that only one of the objects remains selected. When the scene is not running, all the three objects are selected in both the editor window and the scene view window:

not running:

image

running:

image

alelievr commented 4 years ago

Hello, there is an issue in our object selection shader which discards objects that are too far away: It does not work with static batching in play mode, so we decided to cull based on pixel distance instead.

This is fixed on master