暫無描述
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.

SampleReflectionProbes.hlsl 700B

12345678910111213141516171819202122
  1. #ifndef SAMPLE_REFLECTION_PROBES
  2. #define SAMPLE_REFLECTION_PROBES
  3. void URPReflectionProbe_float(float3 positionWS, float3 reflectVector, float3 screenspaceUV, float roughness, out float3 reflection)
  4. {
  5. #ifdef SHADERGRAPH_PREVIEW
  6. reflection = float3(0,0,0);
  7. #else
  8. reflection = GlossyEnvironmentReflection(reflectVector, positionWS, roughness, 1.0h, screenspaceUV);
  9. #endif
  10. }
  11. void URPReflectionProbe_half(float3 positionWS, half3 reflectVector, half3 screenspaceUV, half roughness, out half3 reflection)
  12. {
  13. #ifdef SHADERGRAPH_PREVIEW
  14. reflection = float3(0, 0, 0);
  15. #else
  16. reflection = GlossyEnvironmentReflection(reflectVector, positionWS, roughness, 1.0h, screenspaceUV);
  17. #endif
  18. }
  19. #endif