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.
22 lines
700 B
22 lines
700 B
#ifndef SAMPLE_REFLECTION_PROBES
|
|
#define SAMPLE_REFLECTION_PROBES
|
|
|
|
void URPReflectionProbe_float(float3 positionWS, float3 reflectVector, float3 screenspaceUV, float roughness, out float3 reflection)
|
|
{
|
|
#ifdef SHADERGRAPH_PREVIEW
|
|
reflection = float3(0,0,0);
|
|
#else
|
|
reflection = GlossyEnvironmentReflection(reflectVector, positionWS, roughness, 1.0h, screenspaceUV);
|
|
#endif
|
|
}
|
|
|
|
void URPReflectionProbe_half(float3 positionWS, half3 reflectVector, half3 screenspaceUV, half roughness, out half3 reflection)
|
|
{
|
|
#ifdef SHADERGRAPH_PREVIEW
|
|
reflection = float3(0, 0, 0);
|
|
#else
|
|
reflection = GlossyEnvironmentReflection(reflectVector, positionWS, roughness, 1.0h, screenspaceUV);
|
|
#endif
|
|
}
|
|
|
|
#endif
|