Skip to content

Commit

Permalink
Merge pull request #349 from hackerspace-ntnu/feature/bullet-holes
Browse files Browse the repository at this point in the history
Add bullet hole decals
  • Loading branch information
toberge authored Nov 30, 2023
2 parents 4bfd108 + 5ac2ee3 commit fd3b0f6
Show file tree
Hide file tree
Showing 55 changed files with 1,341 additions and 66 deletions.
8 changes: 8 additions & 0 deletions Assets/Prefabs/Decals.meta

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

58 changes: 58 additions & 0 deletions Assets/Prefabs/Decals/BulletHoleDecal.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3656092962214341424
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8790956406205217714}
- component: {fileID: 5462112114334002006}
m_Layer: 0
m_Name: BulletHoleDecal
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8790956406205217714
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3656092962214341424}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
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: 0, z: 0}
--- !u!114 &5462112114334002006
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3656092962214341424}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0777d029ed3dffa4692f417d4aba19ca, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 6d438fe299bbaee4eabfce599b87c7d4, type: 2}
m_DrawDistance: 1000
m_FadeScale: 0.9
m_StartAngleFade: 180
m_EndAngleFade: 180
m_UVScale: {x: 1, y: 1}
m_UVBias: {x: 0, y: 0}
m_DecalLayerMask: 1
m_ScaleMode: 0
m_Offset: {x: 0, y: 0, z: 0.5}
m_Size: {x: 0.2, y: 0.2, z: 1}
m_FadeFactor: 1
7 changes: 7 additions & 0 deletions Assets/Prefabs/Decals/BulletHoleDecal.prefab.meta

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

58 changes: 58 additions & 0 deletions Assets/Prefabs/Decals/ExplosionMarkDecal.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3656092962214341424
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8790956406205217714}
- component: {fileID: 5462112114334002006}
m_Layer: 0
m_Name: ExplosionMarkDecal
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8790956406205217714
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3656092962214341424}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
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: 0, z: 0}
--- !u!114 &5462112114334002006
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3656092962214341424}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0777d029ed3dffa4692f417d4aba19ca, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: a8094544ffe5c5842b66412eee878e3c, type: 2}
m_DrawDistance: 1000
m_FadeScale: 0.9
m_StartAngleFade: 180
m_EndAngleFade: 180
m_UVScale: {x: 1, y: 1}
m_UVBias: {x: 0, y: 0}
m_DecalLayerMask: 1
m_ScaleMode: 0
m_Offset: {x: 0, y: 0, z: 1}
m_Size: {x: 3, y: 3, z: 2}
m_FadeFactor: 1
7 changes: 7 additions & 0 deletions Assets/Prefabs/Decals/ExplosionMarkDecal.prefab.meta

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

58 changes: 58 additions & 0 deletions Assets/Prefabs/Decals/HatMarkDecal.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3656092962214341424
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8790956406205217714}
- component: {fileID: 5462112114334002006}
m_Layer: 0
m_Name: HatMarkDecal
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8790956406205217714
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3656092962214341424}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
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: 0, z: 0}
--- !u!114 &5462112114334002006
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3656092962214341424}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0777d029ed3dffa4692f417d4aba19ca, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 24b3c313ce365a144b116d12c82a2c27, type: 2}
m_DrawDistance: 1000
m_FadeScale: 0.9
m_StartAngleFade: 180
m_EndAngleFade: 180
m_UVScale: {x: 1, y: 1}
m_UVBias: {x: 0, y: 0}
m_DecalLayerMask: 1
m_ScaleMode: 0
m_Offset: {x: 0, y: 0, z: 0.5}
m_Size: {x: 0.3, y: 0.3, z: 1}
m_FadeFactor: 1
7 changes: 7 additions & 0 deletions Assets/Prefabs/Decals/HatMarkDecal.prefab.meta

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

23 changes: 21 additions & 2 deletions Assets/Prefabs/GunParts/BulletBarrel.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RenderingLayerMask: 4
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 101c4836e405616489580439704f20cd, type: 2}
Expand Down Expand Up @@ -459,7 +459,7 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RenderingLayerMask: 4
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 101c4836e405616489580439704f20cd, type: 2}
Expand Down Expand Up @@ -563,6 +563,7 @@ GameObject:
- component: {fileID: 7327065496144923300}
- component: {fileID: 5073592139580318145}
- component: {fileID: 1897810737203425439}
- component: {fileID: 6794990578115447036}
m_Layer: 0
m_Name: BulletBarrel
m_TagString: Untagged
Expand Down Expand Up @@ -771,3 +772,21 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
firingSound: {fileID: 11400000, guid: b1c2515828913ba4d80a8799b82dab79, type: 2}
--- !u!114 &6794990578115447036
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6861618831928518119}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 18b57f7d0109d614c8ff956eff6a9841, type: 3}
m_Name:
m_EditorClassIdentifier:
mode: 0
decal: {fileID: 5462112114334002006, guid: 65b7186194b414d4bb212807630f62c9, type: 3}
depthOffsetFraction: 0.6
stickToNormalFraction: 0.202
angleVariation: 180
lifetime: 60
23 changes: 23 additions & 0 deletions Assets/Prefabs/GunParts/CannonBarrel.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ GameObject:
- component: {fileID: 7327065496144923300}
- component: {fileID: 5073592139580318145}
- component: {fileID: 1897810737203425439}
- component: {fileID: 421444896169653284}
m_Layer: 0
m_Name: CannonBarrel
m_TagString: Untagged
Expand Down Expand Up @@ -390,6 +391,24 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
firingSound: {fileID: 11400000, guid: b1c2515828913ba4d80a8799b82dab79, type: 2}
--- !u!114 &421444896169653284
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6861618831928518119}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 18b57f7d0109d614c8ff956eff6a9841, type: 3}
m_Name:
m_EditorClassIdentifier:
mode: 0
decal: {fileID: 5462112114334002006, guid: 615c231a828455742a46cce38013bc6d, type: 3}
depthOffsetFraction: 0.6
stickToNormalFraction: 0.7
angleVariation: 180
lifetime: 60
--- !u!1001 &3375044832695150088
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -458,6 +477,10 @@ PrefabInstance:
propertyPath: m_ConstrainProportionsScale
value: 1
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: d9879ee8a74c0fb4c827478b3f6c7362, type: 3}
propertyPath: m_RenderingLayerMask
value: 4
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: d9879ee8a74c0fb4c827478b3f6c7362, type: 3}
propertyPath: m_Name
value: Model
Expand Down
Loading

0 comments on commit fd3b0f6

Please sign in to comment.