Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save openroomxyz/c9d3dc115b53667b22cbaaaaffba3984 to your computer and use it in GitHub Desktop.
Save openroomxyz/c9d3dc115b53667b22cbaaaaffba3984 to your computer and use it in GitHub Desktop.
Unity : How do you set diffuse texture problematically when using HDRp?
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