SetTextureFromGlobal
Binds a global texture to a RayTracingShader.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetTextureFromGlobal(int, int)
Binds a global texture to a RayTracingShader.
public void SetTextureFromGlobal(int nameID, int globalTextureNameID)
Parameters
Remarks
The global texture must be previously set using Shader.SetGlobalTexture.
SetTextureFromGlobal(string, string)
Binds a global texture to a RayTracingShader.
public void SetTextureFromGlobal(string name, string globalTextureName)
Parameters
Remarks
The global texture must be previously set using Shader.SetGlobalTexture.