浏览代码

Created a prototype for the effect

/main
Eduardo de Albuquerque 4 年前
当前提交
dcce5aca
共有 6 个文件被更改,包括 203 次插入4 次删除
  1. 86
      UOP1_Project/Assets/Settings/Graphics/ToonRendererData.asset
  2. 2
      UOP1_Project/ProjectSettings/TagManager.asset
  3. 13
      UOP1_Project/Assets/DepthMask.shader
  4. 9
      UOP1_Project/Assets/DepthMask.shader.meta
  5. 89
      UOP1_Project/Assets/Mask.mat
  6. 8
      UOP1_Project/Assets/Mask.mat.meta

86
UOP1_Project/Assets/Settings/Graphics/ToonRendererData.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-4653668622594081607
MonoBehaviour:
m_ObjectHideFlags: 0
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: 6b3d386ba5cd94485973aee1479b272e, type: 3}
m_Name: Water
m_EditorClassIdentifier:
m_Active: 1
settings:
passTag: Water
Event: 450
filterSettings:
RenderQueueType: 1
LayerMask:
serializedVersion: 2
m_Bits: 16
PassNames: []
overrideMaterial: {fileID: 0}
overrideMaterialPassIndex: 0
overrideDepthState: 0
depthCompareFunction: 4
enableWrite: 1
stencilSettings:
overrideStencilState: 1
stencilReference: 5
stencilCompareFunction: 6
passOperation: 0
failOperation: 0
zFailOperation: 0
cameraSettings:
overrideCamera: 0
restoreCamera: 1
offset: {x: 0, y: 0, z: 0, w: 0}
cameraFieldOfView: 60
--- !u!114 &-4164679405920243544
MonoBehaviour:
m_ObjectHideFlags: 0
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: 6b3d386ba5cd94485973aee1479b272e, type: 3}
m_Name: HideWaterMask
m_EditorClassIdentifier:
m_Active: 1
settings:
passTag: HideWaterMask
Event: 300
filterSettings:
RenderQueueType: 0
LayerMask:
serializedVersion: 2
m_Bits: 512
PassNames: []
overrideMaterial: {fileID: 0}
overrideMaterialPassIndex: 0
overrideDepthState: 0
depthCompareFunction: 4
enableWrite: 0
stencilSettings:
overrideStencilState: 1
stencilReference: 5
stencilCompareFunction: 8
passOperation: 2
failOperation: 0
zFailOperation: 0
cameraSettings:
overrideCamera: 0
restoreCamera: 1
offset: {x: 0, y: 0, z: 0, w: 0}
cameraFieldOfView: 60
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0

m_EditorClassIdentifier:
m_RendererFeatures:
- {fileID: 6060256440939812884}
m_RendererFeatureMap: 1498fdd91f5b1a54
- {fileID: -4164679405920243544}
- {fileID: -4653668622594081607}
m_RendererFeatureMap: 1498fdd91f5b1a54a830bd4e251634c6b9fce53f0bd96abf
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
shaders:
blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}

fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
m_OpaqueLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_Bits: 311
m_Bits: 4294967295
m_Bits: 1831
m_DefaultStencilState:
overrideStencilState: 0
stencilReference: 0

2
UOP1_Project/ProjectSettings/TagManager.asset


-
-
- PostProcessing
-
- HideWaterMask
-
-
-

13
UOP1_Project/Assets/DepthMask.shader


Shader "UOP1/DepthMask"
{
SubShader{
// Don't draw in the RGBA channels
ColorMask 0
// Don't write in the Depth Buffer
ZWrite Off
// Do nothing specific in the pass
Pass {}
}
}

9
UOP1_Project/Assets/DepthMask.shader.meta


fileFormatVersion: 2
guid: 966831bb8ca4062478655a12411bc65d
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

89
UOP1_Project/Assets/Mask.mat


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Mask
m_Shader: {fileID: 4800000, guid: 966831bb8ca4062478655a12411bc65d, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
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}
- _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}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _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}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
--- !u!114 &3656208033693670825
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: 2

8
UOP1_Project/Assets/Mask.mat.meta


fileFormatVersion: 2
guid: 149492f8fee68c6479dfe0383923d49e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存