SimpleLitMetaPass.hlsl 578 B

123456789101112131415
  1. #ifndef UNIVERSAL_SIMPLE_LIT_META_PASS_INCLUDED
  2. #define UNIVERSAL_SIMPLE_LIT_META_PASS_INCLUDED
  3. #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/UniversalMetaPass.hlsl"
  4. half4 UniversalFragmentMetaSimple(Varyings input) : SV_Target
  5. {
  6. float2 uv = input.uv;
  7. MetaInput metaInput;
  8. metaInput.Albedo = _BaseColor.rgb * SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, uv).rgb;
  9. metaInput.Emission = SampleEmission(uv, _EmissionColor.rgb, TEXTURE2D_ARGS(_EmissionMap, sampler_EmissionMap));
  10. return UniversalFragmentMeta(input, metaInput);
  11. }
  12. #endif