【发布时间】:2023-03-28 13:44:01
【问题描述】:
我想在 Unity 中编辑 URP 的 Simple Lit Shader 中 Surface Input 的 Offset 参数,但我不能这样做。
我尝试使用方法SetTextureOffset 仍然无法更新偏移值。
请帮忙
这是我想通过脚本更改的偏移量 -
【问题讨论】:
标签: c# unity3d unity3d-shaders urp
我想在 Unity 中编辑 URP 的 Simple Lit Shader 中 Surface Input 的 Offset 参数,但我不能这样做。
我尝试使用方法SetTextureOffset 仍然无法更新偏移值。
请帮忙
这是我想通过脚本更改的偏移量 -
【问题讨论】:
标签: c# unity3d unity3d-shaders urp
知道了,
在SetTextureOffset 中使用 "_BaseMap" 而不是 "_MainTexture" 并且它可以工作
【讨论】: