/ShaderQuickCheck

A personal shader checkhouse with main code and effect

Primary LanguageShaderLabApache License 2.0Apache-2.0

ShaderQuickCheck

Intro

This is a shader checkhouse, as well as a Unity project with multiple test scenes, materials, and shaders. You can click on the effects hyperlink under contents to find the CG code of the main shader, which can be modified to GLSL, HLSL, and Vulkan GLSL using chatgpt to add to the project. Or load a Unity project to find C#, materials, and model usage. Thanks to Shader for our essential book resources. At the moment I am gradually expanding into more complex effects.

Test Platform: Unity2021

Shader: CG...

Contents

Effect

基本

image-20230409000849041

逐顶点兰伯特漫反射

背部带锯齿

image-20230409013930798

逐像素兰伯特漫反射

不带锯齿,背光面明暗一致

image-20230409014809403

逐像素半兰伯特漫反射

使背光面也有明暗变化

image-20230409020141012

逐顶点高光反射

image-20230409033626618

逐像素高光反射

image-20230409033657342

Blinn-Phone纹理

image-20230409170836727

NormalMap: tangent space&world space

image-20230410100050386

image-20230410102527142

RampTexture

image-20230410105206646

MaskTexture

image-20230410110839568

透明度测试

image-20230410114556370

透明混合

image-20230410173741179

透明混合zwrite

image-20230410185005973

双面透明混合

image-20230410185859804

前向渲染

image-20230410200806911

阴影

image-20230410204806751

CubeMap

image-20230410211410058

反射

image-20230410221538443

折射

image-20230410225759745

Fresnel反射

image-20230410225730184

镜面效果

image-20230410234317404

玻璃效果

image-20230411003542993

程序纹理

image-20230411095808076

脚本类名要和C#文件名相同

序列帧动画

image-20230411112954722

滚动背景

动画

流动河流

waterWave

广告牌效应

billBoard

OnRenderImage、gpu.built

亮度、饱和度、对比度

BriSatCon

边缘检测

EdgeDetect

高斯模糊

GaussianBlur

Bloom

Bloom

运动模糊

MotionBlur

运动模糊(深度图)

MotionBlurWDT

全局雾效

image-20230414234939100

卡通风格

image-20230415223317865

素描风格

image-20230415233223887

消融效果

Dissolve

水波效果

WaterWave

非均匀运动雾

FogNoise

表面着色器(泥土)

image-20230417184234793

自定义表面着色器(膨胀)

image-20230417204315111

基本PBS

image-20230417215736796

TODO

More Effects, HLSL&OpenGL Refactor