Skip to content

Commit

Permalink
URP Support
Browse files Browse the repository at this point in the history
+ URP version
+ Shaders for SkinnedMesh and default materials.
+ All others can be created in the Shader Graph. The nodes can simply be transferred for this purpose.
closes mkrebser#14
  • Loading branch information
Lewin Wienece authored and Lewin Wienece committed Apr 12, 2024
1 parent 28b05a8 commit 9b2594e
Show file tree
Hide file tree
Showing 70 changed files with 88,340 additions and 460 deletions.
5 changes: 2 additions & 3 deletions Assets/Demos.meta

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

60 changes: 57 additions & 3 deletions Assets/Demos/animtexturedemo/male_sprite.mat
Original file line number Diff line number Diff line change
@@ -1,21 +1,40 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-7363897080892485132
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: male_sprite
m_Shader: {fileID: 4800000, guid: c1eb8e85fa54ed549834254db217ef23, type: 3}
m_ShaderKeywords: _ALPHATEST_ON
m_Shader: {fileID: -6465566751694194690, guid: 678d3526ada82654d850a9bb71b0e495,
type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- PROCEDURAL_INSTANCING_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
Expand Down Expand Up @@ -43,6 +62,10 @@ Material:
m_Texture: {fileID: 2800000, guid: 445014c91a8b0014996b51c3e03de0d9, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainText:
m_Texture: {fileID: 2800000, guid: 445014c91a8b0014996b51c3e03de0d9, 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}
Expand All @@ -55,8 +78,23 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- PROCEDURAL_INSTANCING: 1
- _BUILTIN_QueueControl: -1
- _BUILTIN_QueueOffset: 0
- _BumpScale: 1
- _Cutoff: 0.624
- _DetailNormalMapScale: 1
Expand All @@ -69,6 +107,9 @@ Material:
- _Mode: 1
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 0
- _Smoothness: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
Expand All @@ -78,3 +119,16 @@ Material:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
--- !u!114 &4475421663983395782
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 7
60 changes: 57 additions & 3 deletions Assets/Demos/billboarddemo/Explosion.mat
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Explosion
m_Shader: {fileID: 4800000, guid: 8dbde9d1c50cd2a45a46e0b66a4b080f, type: 3}
m_ShaderKeywords:
m_Shader: {fileID: -6465566751694194690, guid: 678d3526ada82654d850a9bb71b0e495,
type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- PROCEDURAL_INSTANCING_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
Expand Down Expand Up @@ -43,6 +49,10 @@ Material:
m_Texture: {fileID: 2800000, guid: 28c24382bf069a942915f8a3f2adbbe8, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainText:
m_Texture: {fileID: 2800000, guid: 28c24382bf069a942915f8a3f2adbbe8, 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}
Expand All @@ -55,8 +65,23 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- PROCEDURAL_INSTANCING: 1
- _BUILTIN_QueueControl: -1
- _BUILTIN_QueueOffset: 0
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
Expand All @@ -69,6 +94,9 @@ Material:
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 0
- _Smoothness: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
Expand All @@ -78,3 +106,29 @@ Material:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
--- !u!114 &5326828559936825535
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 7
--- !u!114 &7425205755044027098
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
2 changes: 1 addition & 1 deletion Assets/Demos/crowddemo/crowddemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void Start()
for (int j = 0; j < N; j++)
{
var mesh = characters[Random.Range(0, characters.Count)];
var anim = mesh.anim.namedAnimations["walk"];
var anim = mesh.anim.namedAnimations["Mutant Walking"];
instances[i, j] = new SkinnedMesh(mesh, this.m);
instances[i, j].mesh.position = new Vector3(i, 0, j);
instances[i, j].SetRadius(1.75f); // set large enough radius so model doesnt get culled to early
Expand Down
69 changes: 58 additions & 11 deletions Assets/Demos/crowddemo/crowddemo.unity
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
Expand Down Expand Up @@ -104,7 +104,7 @@ NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
serializedVersion: 3
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
Expand All @@ -117,7 +117,7 @@ NavMeshSettings:
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
buildHeightMesh: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
Expand All @@ -139,6 +139,7 @@ GameObject:
m_Component:
- component: {fileID: 769542207}
- component: {fileID: 769542206}
- component: {fileID: 769542208}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
Expand Down Expand Up @@ -215,18 +216,43 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 769542205}
serializedVersion: 2
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!114 &769542208
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 769542205}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Version: 3
m_UsePipelineSettings: 1
m_AdditionalLightsShadowResolutionTier: 2
m_LightLayerMask: 1
m_RenderingLayers: 1
m_CustomShadowLayers: 0
m_ShadowLayerMask: 1
m_ShadowRenderingLayers: 1
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
m_SoftShadowQuality: 0
--- !u!1001 &859989811
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 854d98bccbe31984ab739fbc4e46a8df,
Expand Down Expand Up @@ -305,6 +331,9 @@ PrefabInstance:
value: FloorPrototype64x01x64
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 854d98bccbe31984ab739fbc4e46a8df, type: 3}
--- !u!1 &1302094765
GameObject:
Expand Down Expand Up @@ -347,9 +376,17 @@ Camera:
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_Iso: 200
m_ShutterSpeed: 0.005
m_Aperture: 16
m_FocusDistance: 10
m_FocalLength: 50
m_BladeCount: 5
m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25
m_Anamorphism: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
Expand Down Expand Up @@ -383,12 +420,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1302094765}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0.38268343, z: 0, w: 0.92387956}
m_LocalPosition: {x: -5, y: 10, z: -5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 45, z: 0}
--- !u!114 &1302094769
MonoBehaviour:
Expand Down Expand Up @@ -447,14 +485,14 @@ MonoBehaviour:
m_EditorClassIdentifier:
FrustumCullingCamera: {fileID: 1302094767}
characters:
- {fileID: 3156401128397487343, guid: 33a9547627899f24885a53dee4a37665, type: 3}
- {fileID: 5040013727053430140, guid: bd56382a2d9437e4b8e61ca0f145692e, type: 3}
- {fileID: 7175407052540882227, guid: 4c5b3c071117fdf44ac6be5383a44c92, type: 3}
- {fileID: 6650295392987941564, guid: be2ea105ca16ffb41a68f369c0ea22de, type: 3}
- {fileID: 3957205821883281005, guid: 4f16ecdb472ee6844bad6ac5bdaf8d24, type: 3}
- {fileID: 7501894207592630563, guid: e13cdc0f3fcfc4d4e96798834d9d1220, type: 3}
- {fileID: 4974531472248908850, guid: 38565903daf355249800ed6cc400c6b7, type: 3}
- {fileID: 7175407052540882227, guid: 4c5b3c071117fdf44ac6be5383a44c92, type: 3}
- {fileID: 7501894207592630563, guid: e13cdc0f3fcfc4d4e96798834d9d1220, type: 3}
- {fileID: 3156401128397487343, guid: d0de9e6fd0be3314386391658abc962a, type: 3}
- {fileID: 8250799916029583549, guid: 390599f86d74c41418ad9b57476aebb9, type: 3}
- {fileID: 5040013727053430140, guid: bd56382a2d9437e4b8e61ca0f145692e, type: 3}
floor: {fileID: 17339628}
GlobalTimeSpeed: 1
--- !u!4 &1747037101
Expand All @@ -464,10 +502,19 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1747037099}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -5.010328, y: 7.195896, z: 20.829222}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 1302094768}
- {fileID: 769542207}
- {fileID: 1747037101}
- {fileID: 859989811}
Loading

0 comments on commit 9b2594e

Please sign in to comment.