Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
NUZEROVI committed Nov 17, 2022
1 parent 6afe1de commit 423942e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Assets/Scripts/VolumeObject/VolumeObjectFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ public static VolumeRenderedObject CreateObject(VolumeDataset dataset)
volObj.transferFunction2D = tf2D;

meshRenderer.sharedMaterial.SetTexture("_DataTex", dataset.GetDataTexture());
meshRenderer.sharedMaterial.SetTexture("_GradientTex", dataset.GenerateVolume());
meshRenderer.sharedMaterial.SetTexture("_SegmentTex", dataset.GenerateVolume());
meshRenderer.sharedMaterial.SetTexture("_GradientTex", null);
meshRenderer.sharedMaterial.SetTexture("_NoiseTex", noiseTexture);
meshRenderer.sharedMaterial.SetTexture("_TFTex", tfTexture);

Expand Down
3 changes: 2 additions & 1 deletion Assets/Scripts/VolumeObject/VolumeObjectFactory_Mask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public static VolumeRenderedObject_Mask CreateObject(VolumeDataset dataset)
volObj.transferFunction2D = tf2D;

meshRenderer.sharedMaterial.SetTexture("_DataTex", dataset.GetDataTexture());
meshRenderer.sharedMaterial.SetTexture("_GradientTex", dataset.GenerateVolume());
meshRenderer.sharedMaterial.SetTexture("_SegmentTex", dataset.GenerateVolume());
meshRenderer.sharedMaterial.SetTexture("_GradientTex", null);
meshRenderer.sharedMaterial.SetTexture("_NoiseTex", noiseTexture);
meshRenderer.sharedMaterial.SetTexture("_TFTex", tfTexture);

Expand Down

0 comments on commit 423942e

Please sign in to comment.