Skip to content

Commit fa3f4ed

Browse files
authored
Merge pull request #172 from Unity-Technologies/texture-randomizer-hdrp-fix
Make TextureRandomizer compatible with HDRP
2 parents c48a650 + e5a1055 commit fa3f4ed

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 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)