summaryrefslogtreecommitdiffstats
path: root/Third_Party/at.pimaker.ltcgi/Adapter Support
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-05-13 10:54:57 -0700
committeryum <yum.food.vr@gmail.com>2024-05-13 10:54:57 -0700
commit69a2a65710a11cbd7bfa88e35fba89c5eb412b11 (patch)
tree6d2fa8e5069783936759d85b3a58bf45ca104af2 /Third_Party/at.pimaker.ltcgi/Adapter Support
parent1a4298d33de4420b22c723144a1afbe9a3c61b59 (diff)
Remove everything except headers, LICENSE and README from LTCGIv0.0.0
Diffstat (limited to 'Third_Party/at.pimaker.ltcgi/Adapter Support')
-rw-r--r--Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_AvProBlit.shader93
-rw-r--r--Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_AvProBlit_Material.mat35
-rw-r--r--Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_BlitCRT.asset52
-rw-r--r--Third_Party/at.pimaker.ltcgi/Adapter Support/black1px.pngbin513 -> 0 bytes
4 files changed, 0 insertions, 180 deletions
diff --git a/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_AvProBlit.shader b/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_AvProBlit.shader
deleted file mode 100644
index f551558..0000000
--- a/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_AvProBlit.shader
+++ /dev/null
@@ -1,93 +0,0 @@
-Shader "LTCGI/AvProBlit"
-{
- Properties
- {
- _MainTex ("Input Texture", 2D) = "white" {}
- [ToggleUI] _Gamma ("Apply Gamma", Float) = 0
- [ToggleUI] _FlipUV ("Flip Y UV", Float) = 0
-
- _AspectRatio ("Aspect Ratio", Float) = 1.777777
-
- _OverlayTexture ("Overlay Texture", 2D) = "" {}
- _OverlayOpacity ("Overlay Opacity", Float) = 1
- }
- SubShader
- {
- Tags { "RenderType"="Opaque" }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex CustomRenderTextureVertexShader
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "UnityCustomRenderTexture.cginc"
-
- sampler2D _MainTex;
- float4 _MainTex_TexelSize;
-
- float _Gamma, _FlipUV;
- float _AspectRatio;
-
- sampler2D _OverlayTexture;
- float4 _OverlayTexture_TexelSize;
- float _OverlayOpacity;
-
- // Aspect ratio correction by Merlin from USharpVideo
- // taken from AVPro sources
- void correctUV(inout float2 uv, inout float visibility, float2 res)
- {
- float curAspectRatio = res.x / res.y;
- if (abs(curAspectRatio - _AspectRatio) > .01) {
- float2 normRes = float2(res.x / _AspectRatio, res.y);
- float2 correction;
-
- if (normRes.x > normRes.y)
- correction = float2(1, normRes.y / normRes.x);
- else
- correction = float2(normRes.x / normRes.y, 1);
-
- uv = ((uv - 0.5) / correction) + 0.5;
-
- float2 uvPadding = (1 / res) * 0.1;
- float2 uvFwidth = fwidth(uv.xy);
- float2 maxf = smoothstep(uvFwidth + uvPadding + 1, uvPadding + 1, uv.xy);
- float2 minf = smoothstep(-uvFwidth - uvPadding, -uvPadding, uv.xy);
- // calculate the min/max of the true size to apply a 0 to anything beyond the ratio value.
- // This creates the "Black Bars" around the video when the video doesn't match the texel size.
- // If this isn't used, the edge pixels end up getting repeated where the black bars are.
- visibility = maxf.x * maxf.y * minf.x * minf.y;
- }
- }
-
- half4 frag (v2f_customrendertexture i) : SV_Target
- {
- float2 mainTexUv = i.globalTexcoord.xy;
- float2 overlayTexUv = i.globalTexcoord.xy;
- #ifdef UNITY_UV_STARTS_AT_TOP
- _FlipUV = !_FlipUV;
- #endif
- if (_FlipUV) {
- mainTexUv.y = 1 - mainTexUv.y;
- overlayTexUv.y = 1 - overlayTexUv.y;
- }
-
- float visibility = 1;
- correctUV(mainTexUv, visibility, _MainTex_TexelSize.zw);
-
- half4 color = tex2Dlod(_MainTex, float4(mainTexUv, 0, 0)) * visibility;
- if (_OverlayOpacity)
- {
- visibility = 1;
- correctUV(overlayTexUv, visibility, _OverlayTexture_TexelSize.zw);
- color = lerp(color, tex2Dlod(_OverlayTexture, float4(overlayTexUv, 0, 0)) * visibility, _OverlayOpacity);
- }
-
- if (_Gamma) return pow(color, 2.2);
- return color;
- }
- ENDCG
- }
- }
-}
diff --git a/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_AvProBlit_Material.mat b/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_AvProBlit_Material.mat
deleted file mode 100644
index 268142d..0000000
--- a/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_AvProBlit_Material.mat
+++ /dev/null
@@ -1,35 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!21 &2100000
-Material:
- serializedVersion: 6
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_Name: LTCGI_AvProBlit_Material
- m_Shader: {fileID: 4800000, guid: a6985171581abd5498cdd2002d64d876, type: 3}
- m_ShaderKeywords:
- m_LightmapFlags: 4
- m_EnableInstancingVariants: 0
- m_DoubleSidedGI: 0
- m_CustomRenderQueue: -1
- stringTagMap: {}
- disabledShaderPasses: []
- m_SavedProperties:
- serializedVersion: 3
- m_TexEnvs:
- - _MainTex:
- m_Texture: {fileID: 2800000, guid: 68718da77206620438ca14e29cefa6fb, type: 3}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _OverlayTexture:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- m_Floats:
- - _AspectRatio: 1.777777
- - _FlipUV: 1
- - _Gamma: 0
- - _OverlayOpacity: 0
- m_Colors: []
diff --git a/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_BlitCRT.asset b/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_BlitCRT.asset
deleted file mode 100644
index 5e0eabc..0000000
--- a/Third_Party/at.pimaker.ltcgi/Adapter Support/LTCGI_BlitCRT.asset
+++ /dev/null
@@ -1,52 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!86 &8600000
-CustomRenderTexture:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_Name: LTCGI_BlitCRT
- m_ImageContentsHash:
- serializedVersion: 2
- Hash: 00000000000000000000000000000000
- m_ForcedFallbackFormat: 4
- m_DownscaleFallback: 0
- serializedVersion: 3
- m_Width: 1920
- m_Height: 1080
- m_AntiAliasing: 1
- m_MipCount: -1
- m_DepthFormat: 0
- m_ColorFormat: 8
- m_MipMap: 1
- m_GenerateMips: 1
- m_SRGB: 0
- m_UseDynamicScale: 0
- m_BindMS: 0
- m_EnableCompatibleFormat: 1
- m_TextureSettings:
- serializedVersion: 2
- m_FilterMode: 1
- m_Aniso: 0
- m_MipBias: 0
- m_WrapU: 1
- m_WrapV: 1
- m_WrapW: 1
- m_Dimension: 2
- m_VolumeDepth: 1
- m_Material: {fileID: 2100000, guid: 77ef72900fca1b14b867f03b4d1f4ed5, type: 2}
- m_InitSource: 0
- m_InitMaterial: {fileID: 0}
- m_InitColor: {r: 0, g: 0, b: 0, a: 1}
- m_InitTexture: {fileID: 0}
- m_UpdateMode: 1
- m_InitializationMode: 0
- m_UpdateZoneSpace: 0
- m_CurrentUpdateZoneSpace: 0
- m_UpdateZones: []
- m_UpdatePeriod: 0
- m_ShaderPass: 0
- m_CubemapFaceMask: 4294967295
- m_DoubleBuffered: 0
- m_WrapUpdateZones: 0
diff --git a/Third_Party/at.pimaker.ltcgi/Adapter Support/black1px.png b/Third_Party/at.pimaker.ltcgi/Adapter Support/black1px.png
deleted file mode 100644
index fecec1c..0000000
--- a/Third_Party/at.pimaker.ltcgi/Adapter Support/black1px.png
+++ /dev/null
Binary files differ