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...
- Basic
- 逐顶点兰伯特漫反射
- 逐像素兰伯特漫反射
- 逐像素半兰伯特漫反射
- 逐顶点高光反射
- 逐像素高光反射
- Blinn-Phone纹理
- NormalMap: tangentspace
- NormalMap: world space
- RampTexture
- MaskTexture
- 透明度测试
- 透明混合
- 透明混合zwrite
- 双面透明混合
- 前向渲染
- 阴影
- CubeMap
- 反射
- 折射
- Fresnel反射
- 镜面效果
- 玻璃效果
- 程序纹理
- 序列帧动画
- 滚动背景
- 流动河流
- 广告牌效应
- 亮度、饱和度、对比度
- 边缘检测
- 高斯模糊
- Bloom
- 运动模糊
- 运动模糊(深图)
- 全局雾效
- 卡通风格
- 素描风格
- 消融效果
- 水波效果
- 非均匀运动雾
- 表面着色器(泥土)
- 自定义表面着色器 (膨胀)
- 基本PBS
背部带锯齿
不带锯齿,背光面明暗一致
使背光面也有明暗变化
脚本类名要和C#文件名相同
OnRenderImage、gpu.built
More Effects, HLSL&OpenGL Refactor