clean project

This commit is contained in:
Helar Jaadla
2022-03-07 17:52:41 +02:00
parent a174b45bd2
commit cbeb10ec35
5100 changed files with 837159 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018 aadebdeb
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4628488afe63ada4a901ff3b2bd66cb4
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,30 @@
%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: Skybox_ThreeColorGradient
m_Shader: {fileID: 4800000, guid: 87d58b1c0db8a6947bca68a506c1b428, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs: []
m_Floats:
- _DitherStrength: 32
- _Exp: 0.98
m_Colors:
- _BottomColor: {r: 0.3372549, g: 0.34509805, b: 0.36862746, a: 1}
- _MiddleColor: {r: 0.622944, g: 0.633456, b: 0.672, a: 1}
- _TopColor: {r: 0.92941177, g: 0.91361177, b: 0.8662118, a: 1}
- _Up: {r: 0, g: 1, b: 0, a: 1}
m_BuildTextureStacks: []

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 220c53501a6feeb44842c61d7364609c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,82 @@
/************************************************************************************
Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.
Your use of this SDK or tool is subject to the Oculus SDK License Agreement, available at
https://developer.oculus.com/licenses/oculussdk/
Unless required by applicable law or agreed to in writing, the Utilities SDK distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
ANY KIND, either express or implied. See the License for the specific language governing
permissions and limitations under the License.
************************************************************************************/
Shader "Skybox/ThreeColorGradient" {
Properties {
_TopColor ("Top Color", Color) = (1, 0.3, 0.3, 0)
_MiddleColor ("MiddleColor", Color) = (1.0, 1.0, 0.8)
_BottomColor ("Bottom Color", Color) = (0.3, 0.3, 1, 0)
_Up ("Up", Vector) = (0, 1, 0)
_Exp ("Exp", Range(0, 16)) = 1
_DitherStrength("Dither Strength", int) = 16
}
SubShader {
Tags {
"RenderType" = "Background"
"Queue" = "Background"
"PreviewType" = "Skybox"
}
Pass {
ZWrite Off
Cull Off
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
fixed3 _TopColor, _BottomColor, _MiddleColor;
float3 _Up;
float _Exp;
float _DitherStrength;
struct appdata {
float4 vertex : POSITION;
float3 texcoord : TEXCOORD0;
};
struct v2f {
float4 vertex : SV_POSITION;
float3 texcoord : TEXCOORD0;
};
v2f vert (appdata v) {
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.texcoord = v.texcoord;
return o;
}
inline half DitherAnimatedNoise(half2 screenPos) {
half noise = frac(
dot(uint3(screenPos, floor(fmod(_Time.y * 10, 4))), uint3(2, 7, 23) / 17.0f));
noise -= 0.5; // remap from [0..1[ to [-0.5..0.5[
half noiseScaled = (noise / _DitherStrength);
return noiseScaled;
}
fixed4 frag (v2f i) : SV_TARGET {
float3 texcoord = normalize(i.texcoord);
half ditherNoise = DitherAnimatedNoise(i.vertex.xy);
float3 up = normalize(_Up);
float d = dot(texcoord, up);
float s = sign(d);
return fixed4(lerp(_MiddleColor, s < 0.0 ? _BottomColor : _TopColor, (pow(abs(d), _Exp) + ditherNoise )), 1);
}
ENDCG
}
}
CustomEditor "GradientSkybox.LinearThreeColorGradientSkyboxGUI"
}

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 87d58b1c0db8a6947bca68a506c1b428
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant: