Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Assets/Prefabs/Camera.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_RenderShadows: 1
m_RequiresDepthTextureOption: 2
m_RequiresOpaqueTextureOption: 2
m_RequiresOpaqueTextureOption: 1
m_CameraType: 0
m_Cameras:
- {fileID: 1754182892474973891}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Prefabs/Interactables/Ball.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GameObject:
- component: {fileID: 7609458109135603035}
- component: {fileID: 7609458109135603028}
- component: {fileID: 4181798283356415950}
m_Layer: 0
m_Layer: 7
m_Name: Ball
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down
4 changes: 2 additions & 2 deletions Assets/Prefabs/Interactables/Cube.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GameObject:
- component: {fileID: 4795329138781609757}
- component: {fileID: 4795329138781609758}
- component: {fileID: 950589851571159716}
m_Layer: 0
m_Layer: 7
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down Expand Up @@ -418,7 +418,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 4795329138887181542}
m_Layer: 0
m_Layer: 7
m_Name: Center
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Prefabs/Interactables/Door.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GameObject:
- component: {fileID: 2904333231284592463}
- component: {fileID: 2904333231284592460}
- component: {fileID: 2904333231284592461}
m_Layer: 0
m_Layer: 7
m_Name: Door
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Prefabs/Interactables/Dummy Lock.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ GameObject:
- component: {fileID: 6499754372677302386}
- component: {fileID: 7241472463710246339}
- component: {fileID: 976566040887244869}
m_Layer: 0
m_Layer: 7
m_Name: Dummy Lock
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down
4 changes: 2 additions & 2 deletions Assets/Prefabs/Interactables/Gate (Unlocked).prefab
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GameObject:
- component: {fileID: 3008955352867139539}
- component: {fileID: 3008955352867139501}
- component: {fileID: 3008955352867139500}
m_Layer: 0
m_Layer: 7
m_Name: Gate (Unlocked)
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down Expand Up @@ -538,7 +538,7 @@ GameObject:
- component: {fileID: 3008955352914607112}
- component: {fileID: 3008955352914607119}
- component: {fileID: 3008955352914607118}
m_Layer: 0
m_Layer: 7
m_Name: Gate (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Prefabs/Interactables/Interactable Base.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GameObject:
- component: {fileID: 7007801196651952347}
- component: {fileID: 4723133526917844122}
- component: {fileID: 4793178900451971204}
m_Layer: 0
m_Layer: 7
m_Name: Interactable Base
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down
20 changes: 12 additions & 8 deletions Assets/Prefabs/Interactables/Well_Bucket_Lift.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GameObject:
m_Component:
- component: {fileID: 4442211184507422947}
- component: {fileID: 4442211184507422956}
m_Layer: 0
m_Layer: 7
m_Name: Well_Bucket_Lift
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down Expand Up @@ -64,7 +64,7 @@ GameObject:
- component: {fileID: 4442211184634013901}
- component: {fileID: 4442211184634013891}
- component: {fileID: 4442211184634013900}
m_Layer: 0
m_Layer: 7
m_Name: RopeHanging (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down Expand Up @@ -205,6 +205,10 @@ PrefabInstance:
propertyPath: m_Name
value: Well_Bucket (1)
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: d06e2954ef88f5e48a2fdb4a01290871, type: 3}
propertyPath: m_Layer
value: 7
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d06e2954ef88f5e48a2fdb4a01290871, type: 3}
--- !u!1 &3559126117029711454 stripped
Expand All @@ -217,7 +221,7 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: d06e2954ef88f5e48a2fdb4a01290871, type: 3}
m_PrefabInstance: {fileID: 4442211184280744719}
m_PrefabAsset: {fileID: 0}
--- !u!65 &4442211184714845958
--- !u!65 &4442211184714845957
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
Expand All @@ -228,9 +232,9 @@ BoxCollider:
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.002066136, y: 0.0020444675, z: 0.00016364278}
m_Center: {x: -0.0000026421635, y: -0.000013506786, z: -0.0025437085}
--- !u!65 &4442211184714845957
m_Size: {x: 0.0029036289, y: 0.00002732366, z: 0.0025017397}
m_Center: {x: 0.000012779707, y: -0.0010359833, z: -0.00137466}
--- !u!65 &4442211184714845958
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
Expand All @@ -241,8 +245,8 @@ BoxCollider:
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.0029036289, y: 0.00002732366, z: 0.0025017397}
m_Center: {x: 0.000012779707, y: -0.0010359833, z: -0.00137466}
m_Size: {x: 0.002066136, y: 0.0020444675, z: 0.00016364278}
m_Center: {x: -0.0000026421635, y: -0.000013506786, z: -0.0025437085}
--- !u!95 &4442211184714845959
Animator:
serializedVersion: 3
Expand Down
8 changes: 8 additions & 0 deletions Assets/Scripts/Graphics.meta

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

35 changes: 35 additions & 0 deletions Assets/Scripts/Graphics/OutlineFeature.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;

public class OutlineFeature : ScriptableRendererFeature
{
[System.Serializable]
public class OutlineFeatureSettings
{
public bool isEnabled = true;
public RenderPassEvent insertTiming = RenderPassEvent.AfterRendering;
public Material material;
}

public OutlineFeatureSettings settings = new OutlineFeatureSettings();
private RenderTargetHandle renderTargetHandle;
private OutlineRenderPass renderPass;

public override void Create()
{
renderPass = new OutlineRenderPass("Outline Pass", settings.insertTiming, settings.material);
}

public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
{
if (!settings.isEnabled) return;

RenderTargetIdentifier cameraColorTargetIdent = renderer.cameraColorTarget;
renderPass.setup(cameraColorTargetIdent);
renderPass.ConfigureInput(ScriptableRenderPassInput.Normal);
renderer.EnqueuePass(renderPass);
}
}
11 changes: 11 additions & 0 deletions Assets/Scripts/Graphics/OutlineFeature.cs.meta

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

130 changes: 130 additions & 0 deletions Assets/Scripts/Graphics/OutlineMaterial.mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-3343911706550335055
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: 4
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: OutlineMaterial
m_Shader: {fileID: 4800000, guid: ddee5e160afcb494c8df388a38ab8812, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _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}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
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}
- _SpecGlossMap:
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_Floats:
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DepthRadius: 0.002
- _DepthThreshold: 0.05
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _NormalThreshold: 1
- _OcclusionStrength: 1
- _OutlineIntensity: 1
- _OutlineSize: 0.002
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _Threshold: 0.05
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _OutlineColor: {r: 1, g: 1, b: 1, a: 0.12156863}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
8 changes: 8 additions & 0 deletions Assets/Scripts/Graphics/OutlineMaterial.mat.meta

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

Loading