Skip to content

Commit 65e9d42

Browse files
committed
Release 1.0.0.
1 parent 385a537 commit 65e9d42

File tree

174 files changed

+2587
-4177
lines changed

Some content is hidden

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

174 files changed

+2587
-4177
lines changed

Assets/01_Time.meta Assets/01_ScriptToShader.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using UnityEngine;
2+
3+
public class MaterialSet : MonoBehaviour
4+
{
5+
public Material material;
6+
7+
[Range(0, 1)]
8+
public float floatValue;
9+
private int floatValueId;
10+
11+
void Start ()
12+
{
13+
floatValueId = Shader.PropertyToID("_FloatValue");
14+
}
15+
16+
void Update ()
17+
{
18+
material.SetFloat("_FloatValue", floatValue);
19+
material.SetFloat(floatValueId, floatValue);
20+
}
21+
}

Assets/05_Mipmap/SetTextureToObjects.cs.meta Assets/01_ScriptToShader/MaterialSet.cs.meta

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

Assets/06_Fog/Fog.mat Assets/01_ScriptToShader/MaterialSet.mat

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Material:
77
m_CorrespondingSourceObject: {fileID: 0}
88
m_PrefabInstance: {fileID: 0}
99
m_PrefabAsset: {fileID: 0}
10-
m_Name: Fog
11-
m_Shader: {fileID: 4800000, guid: 103b70132be715146bbdcc6525432fa3, type: 3}
10+
m_Name: MaterialSet
11+
m_Shader: {fileID: 4800000, guid: f041c9662c0a72c4085d251d77df55fe, type: 3}
1212
m_ShaderKeywords:
1313
m_LightmapFlags: 4
1414
m_EnableInstancingVariants: 0
@@ -40,7 +40,7 @@ Material:
4040
m_Scale: {x: 1, y: 1}
4141
m_Offset: {x: 0, y: 0}
4242
- _MainTex:
43-
m_Texture: {fileID: 2800000, guid: 512b7e5d691577342bb21f4e868b95b8, type: 3}
43+
m_Texture: {fileID: 0}
4444
m_Scale: {x: 1, y: 1}
4545
m_Offset: {x: 0, y: 0}
4646
- _MetallicGlossMap:
@@ -60,9 +60,11 @@ Material:
6060
- _Cutoff: 0.5
6161
- _DetailNormalMapScale: 1
6262
- _DstBlend: 0
63+
- _FloatValue: 0.5
6364
- _GlossMapScale: 1
6465
- _Glossiness: 0.5
6566
- _GlossyReflections: 1
67+
- _GrayValue: 0.5
6668
- _Metallic: 0
6769
- _Mode: 0
6870
- _OcclusionStrength: 1

Assets/02_VFACE/VFACE.mat.meta Assets/01_ScriptToShader/MaterialSet.mat.meta

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

0 commit comments

Comments
 (0)