Skip to content

Commit

Permalink
Property name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Jul 31, 2021
1 parent 365ce5d commit 91e7940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Assets/Visualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ void LateUpdate()
_bodypix.ProcessImage(_source.Texture);
_previewUI.texture = _source.Texture;

Graphics.Blit(_bodypix.Mask, _mask, _material, 0);
Graphics.Blit(_bodypix.MaskTexture, _mask, _material, 0);
}

void OnRenderObject()
{
if (!_drawSkeleton) return;

_material.SetBuffer("_Keypoints", _bodypix.Keypoints);
_material.SetBuffer("_Keypoints", _bodypix.KeypointBuffer);
_material.SetFloat("_Aspect", (float)_resolution.x / _resolution.y);

_material.SetPass(1);
Expand Down
4 changes: 2 additions & 2 deletions Packages/jp.keijiro.bodypix/Script/BodyPixRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public void Dispose()
public void ProcessImage(Texture sourceTexture)
=> RunModel(sourceTexture);

public RenderTexture Mask
public RenderTexture MaskTexture
=> _buffers.mask;

public GraphicsBuffer Keypoints
public GraphicsBuffer KeypointBuffer
=> _buffers.keypoints;

#endregion
Expand Down

0 comments on commit 91e7940

Please sign in to comment.