Add 3D pixel-art render style (pixelation + depth/normal outlines)
Full-screen URP post effect on the active PC renderer that pixelates the scene to a fixed low-res grid and draws depth + normal edge-detection outlines, with color posterization and tone controls, for a stylized "3D pixel art" look. Runs via Unity's built-in Full Screen Pass feature (no custom C#); reads camera depth/normals so it applies to DOTS entities and GameObjects identically. - PixelOutline.shader/.mat: pixel-snap fill + gamma-space posterize + brightness/contrast/saturation + depth/normal outlines. Normal threshold tuned high so outlines don't flood small characters. - PC_Renderer.asset: FullScreenPassRendererFeature (Depth|Normal, after post-processing). - PostFX_Daylight.asset: tonemapping ACES -> Neutral (poppier color). - Game.unity: brighter base atmosphere (ambient + fog pushed back) and a stronger directional key light so the fill reads under the effect. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
%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: PixelOutline
|
||||
m_Shader: {fileID: 4800000, guid: ab66a5a8f176cac469b6ade5a4286ef0, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs: []
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _Brightness: 1.1
|
||||
- _ColorLevels: 12
|
||||
- _Contrast: 1.05
|
||||
- _DepthEdgesEnabled: 1
|
||||
- _DepthThreshold: 0.08
|
||||
- _EdgeStrength: 1
|
||||
- _NormalEdgesEnabled: 1
|
||||
- _NormalThreshold: 1
|
||||
- _OutlineThickness: 1
|
||||
- _PixelHeight: 200
|
||||
- _PixelateEnabled: 1
|
||||
- _PosterizeEnabled: 1
|
||||
- _Saturation: 1.35
|
||||
m_Colors:
|
||||
- _OutlineColorInner: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _OutlineColorOuter: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
Reference in New Issue
Block a user