Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update readme #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .vs/BVHParse/v15/.suo
Binary file not shown.
Binary file modified .vs/BVHParse/v15/Browse.VC.db
Binary file not shown.
Binary file modified .vs/BVHParse/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/BVHParse/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/BVHParse/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
3 changes: 3 additions & 0 deletions Assembly-CSharp-Editor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@
<Reference Include="SyntaxTree.VisualStudio.Unity.Bridge">
<HintPath>C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/15.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll</HintPath>
</Reference>
<Reference Include="NAudio-Unity">
<HintPath>D:/code/Unity/BVHParse/Assets/Plugin/NAudio-Unity.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>D:/code/Unity/BVHParse/Library/PackageCache/[email protected]/net35/unity-custom/nunit.framework.dll</HintPath>
</Reference>
Expand Down
6 changes: 6 additions & 0 deletions Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,15 @@
<ItemGroup>
<Compile Include="Assets\Scripts\BVHDriver.cs" />
<Compile Include="Assets\Scripts\BVHParser.cs" />
<Compile Include="Assets\Scripts\MouseLookTest.cs" />
<Compile Include="Assets\Scripts\WavUtility.cs" />
<None Include="Assets\Models\unity-chan!\Unity-chan! Model\Art\UnityChanShader\Shader\Unitychan_chara_fuku.shader" />
<None Include="Assets\Models\Checkerboard.shader" />
<None Include="Assets\Models\Rin New 3d - Anime Style\Advance Unlit Shader\Advance Unlit.shader" />
<None Include="Assets\Models\unity-chan!\Unity-chan! Model\Art\UnityChanShader\Shader\Unitychan_chara_akarami_blend.shader" />
<None Include="Assets\Models\unity-chan!\Unity-chan! Model\Art\UnityChanShader\Shader\Unitychan_chara_hair_ds.shader" />
<None Include="Assets\Models\unity-chan!\Unity-chan! Model\Art\UnityChanShader\Shader\Unitychan_chara_hada.shader" />
<None Include="Assets\Models\Triplanar.shader" />
<None Include="Assets\Models\unity-chan!\Unity-chan! Model\Art\UnityChanShader\Shader\Unitychan_chara_fuku_ds.shader" />
<None Include="Assets\Models\unity-chan!\Unity-chan! Model\Art\UnityChanShader\Shader\Unitychan_chara_eyelash_blend.shader" />
<None Include="Assets\Models\unity-chan!\Unity-chan! Model\Art\UnityChanShader\Shader\Unitychan_chara_hada_blend.shader" />
Expand Down Expand Up @@ -260,6 +263,9 @@
<Reference Include="UnityEditor">
<HintPath>C:/Program Files/Unity/Hub/Editor/2019.4.13f1c1/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
<Reference Include="NAudio-Unity">
<HintPath>D:/code/Unity/BVHParse/Assets/Plugin/NAudio-Unity.dll</HintPath>
</Reference>
<Reference Include="mscorlib">
<HintPath>C:/Program Files/Unity/Hub/Editor/2019.4.13f1c1/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll</HintPath>
</Reference>
Expand Down
60 changes: 60 additions & 0 deletions Assets/Models/Triplanar.shader
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
Shader "Unlit/Triplanar"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
_Tiling("Tiling", Float) = 1.0
_OcclusionMap("Occlusion", 2D) = "white" {}
}
SubShader
{
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"

struct v2f
{
half3 objNormal : TEXCOORD0;
float3 coords : TEXCOORD1;
float2 uv : TEXCOORD2;
float4 pos : SV_POSITION;
};

float _Tiling;

v2f vert(float4 pos : POSITION, float3 normal : NORMAL, float2 uv : TEXCOORD0)
{
v2f o;
o.pos = UnityObjectToClipPos(pos);
o.coords = pos.xyz * _Tiling;
o.objNormal = normal;
o.uv = uv;
return o;
}

sampler2D _MainTex;
sampler2D _OcclusionMap;

fixed4 frag(v2f i) : SV_Target
{
// use absolute value of normal as texture weights
half3 blend = abs(i.objNormal);
// make sure the weights sum up to 1 (divide by sum of x+y+z)
blend /= dot(blend,1.0);
// read the three texture projections, for x,y,z axes
fixed4 cx = tex2D(_MainTex, i.coords.yz);
fixed4 cy = tex2D(_MainTex, i.coords.xz);
fixed4 cz = tex2D(_MainTex, i.coords.xy);
// blend the textures based on weights
fixed4 c = cx * blend.x + cy * blend.y + cz * blend.z;
// modulate by regular occlusion map
c *= tex2D(_OcclusionMap, i.uv);
return c;
}
ENDCG
}
}
}
11 changes: 11 additions & 0 deletions Assets/Models/Triplanar.shader.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Assets/Models/plane.mat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: plane
m_Shader: {fileID: 4800000, guid: e06306515c7dd6f46975f38e964b9e24, type: 3}
m_Shader: {fileID: 4800000, guid: 2447b3bca4d70574590a0b041abda16e, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
Expand Down Expand Up @@ -40,7 +40,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: 44c03eb9b0d2ef34b9e7a60eec7f1b1d, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
Expand Down Expand Up @@ -71,6 +71,7 @@ Material:
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Tiling: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
Expand Down
8 changes: 8 additions & 0 deletions Assets/Plugin.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Plugin/NAudio-Unity.dll
Binary file not shown.
33 changes: 33 additions & 0 deletions Assets/Plugin/NAudio-Unity.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Resources.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading