LOD Crossfade 対応 Shader
Unity: 2023.1 (URP: 15.0.6)
設定
https://gyazo.com/d8390e9144089ddfc22df0b47163c054
https://gyazo.com/460a4b8dcdef8ef0cf11cb676ad83cae
Defines and Includes
code:.hlsl
#pragma multi_compile_fragment _ LOD_FADE_CROSSFADE code:.hlsl
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/LODCrossFade.hlsl" Fragment shader
code:.hlsl
void frag(Varyings input, out half4 outColor : SV_Target0)
{
LODFadeCrossFade(input.positionCS);
// ...