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.
19 lines
716 B
19 lines
716 B
#ifndef UNIVERSAL_LIT_META_PASS_INCLUDED |
|
#define UNIVERSAL_LIT_META_PASS_INCLUDED |
|
|
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/UniversalMetaPass.hlsl" |
|
|
|
half4 UniversalFragmentMetaLit(Varyings input) : SV_Target |
|
{ |
|
SurfaceData surfaceData; |
|
InitializeStandardLitSurfaceData(input.uv, surfaceData); |
|
|
|
BRDFData brdfData; |
|
InitializeBRDFData(surfaceData.albedo, surfaceData.metallic, surfaceData.specular, surfaceData.smoothness, surfaceData.alpha, brdfData); |
|
|
|
MetaInput metaInput; |
|
metaInput.Albedo = brdfData.diffuse + brdfData.specular * brdfData.roughness * 0.5; |
|
metaInput.Emission = surfaceData.emission; |
|
return UniversalFragmentMeta(input, metaInput); |
|
} |
|
#endif
|
|
|