Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save openroomxyz/ae33ea63074f14e850bcb89077b392af to your computer and use it in GitHub Desktop.
Save openroomxyz/ae33ea63074f14e850bcb89077b392af to your computer and use it in GitHub Desktop.
Unity : How to set render texture as texture pragmatically under HDRP?
public static void SetBaseColorMap(ref Renderer renderer, in RenderTexture render_texture)
{
renderer.material.SetTexture("_BaseColorMap", render_texture);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment