Skip to content

HDRP support (instructions) #5

Open
@unitycoder

Description

@unitycoder

Currently it requires you to do few modifications: These instructions are for 2020.3.21f1 + HDRP 10.6.0

  • Open VelodyneViewer.cs
  • Add line:
    public static VelodyneViewer instance;
  • Add line (inside Awake() method)
    instance = this;
  • Project window Create/Rendering/C# Custom Pass (can name it as Custom Pass Velo, or anything else)
  • Open that custom pass script, Add lines (inside Execute method)
if (Velodyne.VelodyneViewer.instance == null) return;
ctx.cmd.DrawProcedural(Matrix4x4.identity, Velodyne.VelodyneViewer.instance.cloudMaterial, 0, MeshTopology.Points, Velodyne.VelodyneViewer.instance.points.Length);
  • Select Main Camera from hierarchy
  • Add component: "Custom Pass Volume"
  • Press + button for Custom Passes, select "Custom Pass Velo"
  • Hit play to test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions