Skip to content

Commit 9ec69a7

Browse files
committed
fixed texture randomizer
1 parent c48a650 commit 9ec69a7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

com.unity.perception/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ Fixed a bug where removing all randomizers from a scenario caused the randomizer
7272

7373
Semantic Segmentation Labeler now produces output in the proper form for distributed data generation on Unity Simulation by placing output in randomized directory names
7474

75+
Texture Randomizer is now compatible works with HDRP
76+
77+
7578
## [0.6.0-preview.1] - 2020-12-03
7679

7780
### Added

com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/TextureRandomizer.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ namespace UnityEngine.Experimental.Perception.Randomization.Randomizers.SampleRa
1111
[AddRandomizerMenu("Perception/Texture Randomizer")]
1212
public class TextureRandomizer : Randomizer
1313
{
14+
#if HDRP_PRESENT
15+
static readonly int k_BaseTexture = Shader.PropertyToID("_BaseColorMap");
16+
#else
1417
static readonly int k_BaseTexture = Shader.PropertyToID("_BaseMap");
18+
#endif
1519

1620
/// <summary>
1721
/// The list of textures to sample and apply to tagged objects

0 commit comments

Comments
 (0)