Created
April 6, 2020 11:15
-
-
Save openroomxyz/c9d3dc115b53667b22cbaaaaffba3984 to your computer and use it in GitHub Desktop.
Unity : How do you set diffuse texture problematically when using 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace MLib.BuildInMaterialsTools.HDR | |
{ | |
public class Lit | |
{ | |
public static void SetBaseColorMap(ref Renderer renderer,in RenderTexture render_texture) | |
{ | |
renderer.material.SetTexture("_BaseColorMap", render_texture); | |
} | |
} | |
//rend.sharedMaterial.SetTexture("_BaseColorMap", result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment