Skip to content

Commit 385a537

Browse files
committed
First commit.
1 parent cf704c5 commit 385a537

File tree

155 files changed

+85855
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+85855
-3
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ ExportedObj/
3232
sysinfo.txt
3333

3434
# Builds
35-
*.apk
36-
*.unitypackage
35+
*.apk

Assets/01_Time.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/01_Time/Time.mat

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!21 &2100000
4+
Material:
5+
serializedVersion: 6
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
10+
m_Name: Time
11+
m_Shader: {fileID: 4800000, guid: 45deda3f09b3b534196171f5fdf287fe, type: 3}
12+
m_ShaderKeywords:
13+
m_LightmapFlags: 4
14+
m_EnableInstancingVariants: 0
15+
m_DoubleSidedGI: 0
16+
m_CustomRenderQueue: -1
17+
stringTagMap: {}
18+
disabledShaderPasses: []
19+
m_SavedProperties:
20+
serializedVersion: 3
21+
m_TexEnvs:
22+
- _BumpMap:
23+
m_Texture: {fileID: 0}
24+
m_Scale: {x: 1, y: 1}
25+
m_Offset: {x: 0, y: 0}
26+
- _DetailAlbedoMap:
27+
m_Texture: {fileID: 0}
28+
m_Scale: {x: 1, y: 1}
29+
m_Offset: {x: 0, y: 0}
30+
- _DetailMask:
31+
m_Texture: {fileID: 0}
32+
m_Scale: {x: 1, y: 1}
33+
m_Offset: {x: 0, y: 0}
34+
- _DetailNormalMap:
35+
m_Texture: {fileID: 0}
36+
m_Scale: {x: 1, y: 1}
37+
m_Offset: {x: 0, y: 0}
38+
- _EmissionMap:
39+
m_Texture: {fileID: 0}
40+
m_Scale: {x: 1, y: 1}
41+
m_Offset: {x: 0, y: 0}
42+
- _MainTex:
43+
m_Texture: {fileID: 0}
44+
m_Scale: {x: 1, y: 1}
45+
m_Offset: {x: 0, y: 0}
46+
- _MetallicGlossMap:
47+
m_Texture: {fileID: 0}
48+
m_Scale: {x: 1, y: 1}
49+
m_Offset: {x: 0, y: 0}
50+
- _OcclusionMap:
51+
m_Texture: {fileID: 0}
52+
m_Scale: {x: 1, y: 1}
53+
m_Offset: {x: 0, y: 0}
54+
- _ParallaxMap:
55+
m_Texture: {fileID: 0}
56+
m_Scale: {x: 1, y: 1}
57+
m_Offset: {x: 0, y: 0}
58+
m_Floats:
59+
- _BumpScale: 1
60+
- _Cutoff: 0.5
61+
- _DetailNormalMapScale: 1
62+
- _DstBlend: 0
63+
- _GlossMapScale: 1
64+
- _Glossiness: 0.5
65+
- _GlossyReflections: 1
66+
- _Metallic: 0
67+
- _Mode: 0
68+
- _OcclusionStrength: 1
69+
- _Parallax: 0.02
70+
- _SmoothnessTextureChannel: 0
71+
- _SpecularHighlights: 1
72+
- _SrcBlend: 1
73+
- _UVSec: 0
74+
- _ZWrite: 1
75+
m_Colors:
76+
- _Color: {r: 1, g: 1, b: 1, a: 1}
77+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

Assets/01_Time/Time.mat.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/01_Time/Time.shader

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
Shader "Unlit/Time"
2+
{
3+
Properties
4+
{
5+
_MainTex ("Texture", 2D) = "white" {}
6+
}
7+
SubShader
8+
{
9+
Tags
10+
{
11+
"RenderType" = "Opaque"
12+
}
13+
14+
Pass
15+
{
16+
CGPROGRAM
17+
18+
#pragma vertex vert
19+
#pragma fragment frag
20+
21+
#include "UnityCG.cginc"
22+
23+
struct appdata
24+
{
25+
float4 vertex : POSITION;
26+
float2 uv : TEXCOORD0;
27+
};
28+
29+
struct v2f
30+
{
31+
float4 vertex : SV_POSITION;
32+
float2 uv : TEXCOORD0;
33+
34+
};
35+
36+
sampler2D _MainTex;
37+
float4 _MainTex_ST;
38+
39+
v2f vert (appdata v)
40+
{
41+
v2f o;
42+
43+
v.vertex.y *= sin(_Time.z);
44+
v.vertex.y += _SinTime.w;
45+
46+
o.vertex = UnityObjectToClipPos(v.vertex);
47+
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
48+
49+
return o;
50+
}
51+
52+
fixed4 frag (v2f i) : SV_Target
53+
{
54+
//UVScrollやった方が良い
55+
return fixed4(_CosTime.x, _CosTime.y, cos(unity_DeltaTime.x), 1);
56+
}
57+
58+
ENDCG
59+
}
60+
}
61+
}

Assets/01_Time/Time.shader.meta

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)