SebLague / Procedural-Landmass-Generation

Procedural Landmass Generation in Unity
https://www.youtube.com/playlist?list=PLFt_AvWsXl0eBW2EiBtl_sxmDtSgZBxB3
MIT License
1.1k stars 596 forks source link

Ep.2 Noise texture doesn't generate in HDRP #38

Closed ghost closed 2 years ago

ghost commented 2 years ago

In mapDisplay, "textureRender.sharedMaterial.mainTexture = texture;" ... doesn't seem to do anything in HDRP.

ghost commented 2 years ago

Added public string at top of MapDisplay:

public string texName = "_BaseColorMap";

Then, changed : textureRender.sharedMaterial.mainTexture = texture;

to: textureRender.sharedMaterial.SetTexture(texName, texture);