Skip to content

HDRP Support #2

@unitycoder

Description

@unitycoder

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions