Created
April 11, 2020 21:04
-
-
Save openroomxyz/ae33ea63074f14e850bcb89077b392af to your computer and use it in GitHub Desktop.
Unity : How to set render texture as texture pragmatically under HDRP?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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