Initial commit

This commit is contained in:
msk
2022-01-22 20:13:49 -08:00
parent f9d23e5bcf
commit 687473573d
878 changed files with 70957 additions and 0 deletions
@@ -0,0 +1,28 @@
// Alloy Physical Shader Framework
// Copyright 2013-2017 RUST LLC.
// http://www.alloy.rustltd.com/
Shader "Hidden/AlloyNormalBlit" {
Properties {
_MainTex ("Render Input", 2D) = "white" {}
}
SubShader {
ZTest Always Cull Off ZWrite Off Fog { Mode Off }
Pass {
CGPROGRAM
#pragma vertex vert_img
#pragma fragment frag
#include "UnityCG.cginc"
sampler2D _MainTex;
float _EditorIsLinear;
float4 frag(v2f_img IN) : SV_Target {
half3 n = UnpackNormal(tex2D (_MainTex, IN.uv));
half4 col = half4((n.x + 1.0f) / 2.0f, (n.y + 1.0f) / 2.0f, (n.z + 1.0f) / 2.0f, 1.0f);
return col;
}
ENDCG
}
}
}
@@ -0,0 +1,6 @@
fileFormatVersion: 2
guid: 75d40b6b4e49a864bb9c2f02005b9c02
ShaderImporter:
defaultTextures: []
userData:
assetBundleName:
@@ -0,0 +1,33 @@
// Alloy Physical Shader Framework
// Copyright 2013-2017 RUST LLC.
// http://www.alloy.rustltd.com/
Shader "Hidden/AlloyPassthroughBlit" {
Properties {
_MainTex ("Render Input", 2D) = "white" {}
}
SubShader {
ZTest Always Cull Off ZWrite Off Fog { Mode Off }
Pass {
CGPROGRAM
#pragma vertex vert_img
#pragma fragment frag
#include "UnityCG.cginc"
sampler2D _MainTex;
float _EditorIsLinear;
float4 frag(v2f_img IN) : SV_Target {
half4 col = tex2D (_MainTex, IN.uv);
if (_EditorIsLinear > 0.5f) {
//Source: http://chilliant.blogspot.nl/2012/08/srgb-approximations-for-hlsl.html
col = max(1.055f * pow(col, 0.416666667f) - 0.055f, 0);
}
return col;
}
ENDCG
}
}
}
@@ -0,0 +1,6 @@
fileFormatVersion: 2
guid: 46e9194a7cb1e8e43b4bfa242f173dad
ShaderImporter:
defaultTextures: []
userData:
assetBundleName: