• Stars
    star
    328
  • Rank 127,713 (Top 3 %)
  • Language
    C#
  • Created over 3 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A project used for learning Unity Universal Render Pipeline

URPLearn

此项目用于Unity通用渲染管线学习。

环境:

  • Unity版本 2019.4.18f
  • URP版本 7.5.2。

资源文件说明:

  • 管线配置位于Assets/Settings
  • 用例代码位于Assets/URPLearn,按照文件夹区分。有的用例会自带scene场景,其余的统一使用Assets/Scenes/SampleScene场景来预览
  • 各种后处理的开关请看Assets/Settings/ForwardRenderer面板内,PostProcessingFeature中的Effects列表。点击选中每个Effect,控制其Active状态来进行开关。

URP源码解读

URP后处理造轮子

  1. 扩展RendererFeatures

  2. 自定义PostProcessing

    2.1 简单的ColorTint

    2.2 Blur - 模糊效果

    2.3 Bloom - 泛光特效

    2.4 SSAO - 屏幕空间环境光遮蔽

    2.5 DepthOfField - 景深

  3. ScreenSpacePlanarReflectionFeature(屏幕空间平面反射)

GUP Instance功能

  1. GPU Instance绘制草植 - Grass Simulation

水体模拟

  1. 浅水模拟 - Shallow Water Simulation

扩展阅读

  1. HDR相关原理

    • ToneMapping
    • 浮点纹理
  2. 什么是Gamma矫正、线性色彩空间和sRGB

    以上文章大致总结以下就是:

    • 早期显示器输出亮度与电压不是线性关系,而是l = u^2.2幂次关系。因此线性的色彩空间,经由显示器输出后,会变暗。
    • sRGB编码就是通过反向的曲线,先将线性色彩变亮,即sRGB = linearRGB^0.45。再经由显示器,就能完美还原了。
  3. 什么是Color-LUT

  4. ConstantBuffer

  5. Uniform Scale

More Repositories

1

GPUDrivenTerrainLearn

A Unity Project used for Learning GPU Driven Terrain Render
C#
331
star
2

SRPLearn

Unity可编程渲染管线造轮子项目
C#
275
star
3

PBDClothLearn

Cloth Simulation by Position Based Dynamics + Unity Job System
C#
85
star
4

Sprites-Outline

Outline effect for Unity SpriteRenderer
ShaderLab
73
star
5

GPUClothSimulationLearn

Unity GPU布料物理模拟入门
C#
63
star
6

UnityShellHelper

Execute shell command in unity editor
C#
57
star
7

UnityShell

execute shell command in Unity Editor
C#
53
star
8

SHLearn

球谐光照学习项目
C#
50
star
9

UnityRustInteractTest

Unity Rust Interact Test
C#
30
star
10

XPBDUnityRust

realize XPBD with rust and render in Unity
Rust
29
star
11

UnityLuaInteractDemo

Unity中c#与lua的交互原理和用例
C#
24
star
12

Log4Unity

类似log4js的Unity日志系统
C#
18
star
13

slua_advanced

Lua game framework based on Unity+SLua ( plugin design, OOP support, build pipleline support)
C#
17
star
14

LitTask

.Net/Unity lightweight allocation free Task-like object
C#
15
star
15

UnityNativeDialog

Display native dialog in unity (support Android&iOS)
C#
15
star
16

UniTweenAsync

async/await tween function extensions for Unity
C#
13
star
17

SerializableEvent

Better Persistent Event System than UnityEvent
C#
9
star
18

UniPool

Simple Object Pool Library for Unity
C#
7
star
19

ViewportedLayouts

high performance large elements layout in rect viewport for unity UGUI
C#
7
star
20

UnitySVN

A Unity plugin designed for access svn in unity editor with GUI
C#
7
star
21

LitCSV

LitCSV for Unity
C#
6
star
22

LitJsonUPM

unity package for LitJSON
6
star
23

MSAsync

Unity async/await framework
C#
5
star
24

ConfigTableCSharp

Unity C# Runtime Library for ConfigTable
C#
5
star
25

EventBus

A simple event subscribe & post library for Unity
C#
4
star
26

UniNoise

Noise Algorithm and Texture Generate in Unity
C#
4
star
27

FastReflection

.Net fast reflection for Unity
C#
4
star
28

ValueTaskExt

.Net ValueTask Extensions for Unity
C#
3
star
29

ms-config-compiler

预处理工具。将特定格式的excel配置表,转换为二进制数据和模型代码。 供运行时快速加载和读取。
JavaScript
2
star
30

FileRoller

C#
2
star
31

TestCode

2d GameEngine for android&ios
C
2
star
32

physics-rs

test some physics simulation algorithms by rust
Rust
2
star
33

QuickScreenCapture

quick screen capture for unity editor
C#
1
star
34

Taskit

light weight task framework for unity
C#
1
star
35

MSCommonUtils

some good utils for unity
C#
1
star
36

ULocalization

Unity Plugin designed for text localization
C#
1
star