You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
578 B
16 lines
578 B
2 years ago
|
#ifndef UNIVERSAL_SIMPLE_LIT_META_PASS_INCLUDED
|
||
|
#define UNIVERSAL_SIMPLE_LIT_META_PASS_INCLUDED
|
||
|
|
||
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/UniversalMetaPass.hlsl"
|
||
|
|
||
|
half4 UniversalFragmentMetaSimple(Varyings input) : SV_Target
|
||
|
{
|
||
|
float2 uv = input.uv;
|
||
|
MetaInput metaInput;
|
||
|
metaInput.Albedo = _BaseColor.rgb * SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, uv).rgb;
|
||
|
metaInput.Emission = SampleEmission(uv, _EmissionColor.rgb, TEXTURE2D_ARGS(_EmissionMap, sampler_EmissionMap));
|
||
|
|
||
|
return UniversalFragmentMeta(input, metaInput);
|
||
|
}
|
||
|
#endif
|