Skip to content

Commit

Permalink
Implement alpha clipping [closes #30]
Browse files Browse the repository at this point in the history
  • Loading branch information
Delt06 committed Apr 4, 2023
1 parent eb01f02 commit d7cd68a
Show file tree
Hide file tree
Showing 24 changed files with 1,000 additions and 33 deletions.
87 changes: 80 additions & 7 deletions Assets/Samples/SampleScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ PrefabInstance:
m_Modifications:
- target: {fileID: -8679921383154817045, guid: eaa42215fec37ff42a7fc22c96434a4a, type: 3}
propertyPath: m_RootOrder
value: 1
value: 2
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: eaa42215fec37ff42a7fc22c96434a4a, type: 3}
propertyPath: m_LocalScale.x
Expand Down Expand Up @@ -355,7 +355,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 48.902, y: -136.868, z: 12.081}
--- !u!1 &773744759
GameObject:
Expand Down Expand Up @@ -453,7 +453,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 5
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &950085377
GameObject:
Expand Down Expand Up @@ -551,7 +551,7 @@ Transform:
m_Children:
- {fileID: 31829880}
m_Father: {fileID: 0}
m_RootOrder: 4
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &963194225
GameObject:
Expand Down Expand Up @@ -734,7 +734,7 @@ Transform:
m_Children:
- {fileID: 2032681995}
m_Father: {fileID: 0}
m_RootOrder: 6
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: -7.538, y: -64.128, z: 66.156}
--- !u!1 &1416754893
GameObject:
Expand Down Expand Up @@ -831,7 +831,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1600571215
GameObject:
Expand Down Expand Up @@ -928,8 +928,81 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1807601335
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalScale.x
value: 40
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalScale.y
value: 40
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalScale.z
value: 40
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalPosition.x
value: -1.74
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalPosition.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalRotation.w
value: 0.6522644
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalRotation.x
value: -0.65226454
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalRotation.y
value: 0.27304044
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalRotation.z
value: 0.27304044
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 45.429
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_Name
value: PineTree_02
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
propertyPath: m_Layer
value: 6
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 3f31922a8210904438ece0cfa3bab096, type: 3}
--- !u!1 &1870139897
GameObject:
m_ObjectHideFlags: 0
Expand Down
2 changes: 1 addition & 1 deletion Assets/Samples/Toon Render Pipeline Asset.asset
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ MonoBehaviour:
- Name: Default
LayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_Bits: 55
Color: {r: 0, g: 0, b: 0, a: 0}
Thickness: 0.025
UseNormalsFromUV2: 0
Expand Down
8 changes: 8 additions & 0 deletions Assets/Samples/Ultimate Stylized Nature Pack.meta

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

Binary file not shown.
115 changes: 115 additions & 0 deletions Assets/Samples/Ultimate Stylized Nature Pack/PineTree_2.fbx.meta

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

105 changes: 105 additions & 0 deletions Assets/Samples/Ultimate Stylized Nature Pack/PineTree_Bark.mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: PineTree_Bark
m_Shader: {fileID: 4800000, guid: 66d261cceb43446dbdd99389a7ed8411, type: 3}
m_ValidKeywords:
- _NORMAL_MAP
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2000
stringTagMap:
RenderType: Opaque
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTexture:
m_Texture: {fileID: 2800000, guid: 1cfdce11616458c4c8006043fb89f93c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMap:
m_Texture: {fileID: 2800000, guid: 0441a4753a3ab6c4795a196c6411445c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AlphaClipThreshold: 0.5
- _AlphaClipping: 0
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _OverrideRamp: 0
- _OverrideRamp_RimSmoothness: 0.1
- _OverrideRamp_RimThreshold: 0.5
- _OverrideRamp_Smoothness: 0.083
- _OverrideRamp_SpecularSmoothness: 0.005
- _OverrideRamp_SpecularThreshold: 0.995
- _OverrideRamp_Threshold: 0
- _Parallax: 0.02
- _QueueOffset: 0
- _ReceiveBlobShadows: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _MainColor: {r: 1, g: 1, b: 1, a: 1}
- _RimColor: {r: 0, g: 0, b: 0, a: 0}
- _ShadowColor: {r: 0.092, g: 0.0039056588, b: 0.0039056588, a: 0.75}
- _SpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d7cd68a

Please sign in to comment.