Skip to content

Commit

Permalink
Fix cones rendering setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kamkolak-lge authored and EricBoiseLGSVL committed May 15, 2020
1 parent 309d933 commit 4c786c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Assets/Scripts/PointCloud/PointCloudRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ private void RenderAsPoints(CommandBuffer cmd, HDCamera targetCamera, RenderTarg
{
// More that 1 RT currently means that render is targeting GBuffer
var targetGBuffer = rtIds.Length > 1;
CoreUtils.SetKeyword(cmd, PointCloudShaderIDs.PointsRender.ConesKeyword, RenderMode == RenderType.Cones);

if (ConstantSize && Mathf.Approximately(PixelSize, 1f))
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Shaders/PointCloudCircles_HDRP.shader
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Shader "Simulator/PointCloud/HDRP/Circles"
#pragma geometry Geom
#pragma fragment Frag
#pragma multi_compile_local _ _SIZE_IN_PIXELS
#pragma multi_compile_local _CIRCLES _CONES
#pragma multi_compile _CIRCLES _CONES
#pragma multi_compile _ _PC_TARGET_GBUFFER

struct g2f
Expand Down

0 comments on commit 4c786c5

Please sign in to comment.