WuhuIslandTesting/Library/PackageCache/com.unity.render-pipelines.universal@8148.0.7-4/Editor/Converter/TextureConvert/ConvertToMAS.shader
2025-01-07 02:06:59 +01:00

29 lines
No EOL
762 B
Text

Shader "Hidden/Convert To MAS" {
Properties {
_MetallicGlossMap ("Base (RGB)", 2D) = "black" {}
_OcclusionMap ("Second (RGB)", 2D) = "white" {}
}
SubShader {
Pass {
CGPROGRAM
#pragma vertex vert_img
#pragma fragment frag
#include "UnityCG.cginc"
uniform sampler2D _MetallicGlossMap;
uniform sampler2D _OcclusionMap;
fixed4 frag(v2f_img i) : SV_Target {
fixed4 color;
color.rb = tex2D(_MetallicGlossMap, i.uv).ra;
color.g = tex2D(_OcclusionMap, i.uv).g;
color.a = 1;
return color;
}
ENDCG
}
}
}