mirror of
https://github.com/muskit/H3VR-TNH-Quality-of-Life-Improvements.git
synced 2026-06-03 04:34:26 -07:00
50 lines
1.1 KiB
Plaintext
Vendored
50 lines
1.1 KiB
Plaintext
Vendored
// Alloy Physical Shader Framework
|
|
// Copyright 2013-2017 RUST LLC.
|
|
// http://www.alloy.rustltd.com/
|
|
|
|
Shader "Hidden/Alloy/Deferred Reflections" {
|
|
Properties {
|
|
_SrcBlend ("", Float) = 1
|
|
_DstBlend ("", Float) = 1
|
|
}
|
|
SubShader {
|
|
// Calculates reflection contribution from a single probe (rendered as cubes) or default reflection (rendered as full screen quad)
|
|
Pass {
|
|
ZWrite Off
|
|
ZTest LEqual
|
|
Blend [_SrcBlend] [_DstBlend]
|
|
|
|
CGPROGRAM
|
|
#pragma target 3.0
|
|
#pragma vertex aMainVertexShader
|
|
#pragma fragment aMainFragmentShader
|
|
|
|
#include "Assets/Alloy/Shaders/Deferred/ReflectionProbe.cginc"
|
|
#include "Assets/Alloy/Shaders/Lighting/Standard.cginc"
|
|
|
|
ENDCG
|
|
}
|
|
|
|
// Adds reflection buffer to the lighting buffer
|
|
Pass
|
|
{
|
|
ZWrite Off
|
|
ZTest Always
|
|
Blend [_SrcBlend] [_DstBlend]
|
|
|
|
CGPROGRAM
|
|
#pragma target 3.0
|
|
#pragma vertex aMainVertexShader
|
|
#pragma fragment aMainFragmentShader
|
|
|
|
#pragma multi_compile ___ UNITY_HDR_ON
|
|
|
|
#include "Assets/Alloy/Shaders/Deferred/ReflectionAdd.cginc"
|
|
|
|
ENDCG
|
|
}
|
|
}
|
|
Fallback Off
|
|
}
|
|
|