Contributed by ToddRivers
# Unity Sprite Shaders
An Uber Shader specialised for rendering Sprites in Unity.
Even though it's designed for Sprites it can be used for a whole range of uses. It supports a wide range of optional shader features that won't effect performance unless they are used.
It also supports per-pixel effects such as normal maps and diffuse ramping whilst using Vertex Lit rendering.
### Lighting
The shaders support lighting using both Forward Rendering and Vertex Lit Rendering.
Forward rendering is more accurate but is slower and crucially means the sprite has to write to depth using alpha clipping to avoid overdraw.
Vertex lit means all lighting can be done in one pass meaning full alpha can be used.
### Normal Mapping
Normals maps are supported in both lighting modes (in Vertex Lit rendering data for normal mapping is packed into texture channels and then processed per pixel).
### Blend Modes
Easily switch between blend modes including pre-multiplied alpha, additive, multiply etc.
### Rim Lighting
Camera-space rim lighting is supported in both lighting modes.
### Diffuse Ramp
A ramp texture is optionally supported for toon shading effects.
### Shadows
Shadows are supported using alpha clipping.
### Gradient based Ambient lighting
Both lighting modes support using a gradient for ambient light. In Vertex Lit mode the Spherical Harmonics is approximated from the ground, equator and sky colors.
### Emission Map
An optional emission map is supported.
### Camera Space Normals
As sprites are 2d their normals will always be constant. The shaders allow you to define a fixed normal in camera space rather than pass through mesh normals.
This not only saves vertex throughput but means lighting looks less 'flat' for rendering sprites with a perspective camera.
### Color Adjustment
The shaders allow optional adjustment of hue / saturation and brightness as well as applying a solid color overlay effect for flashing a sprite to a solid color (eg. for damage effects).
### Fog
Fog is optionally supported
## To Use
On your object's material click the drop down for shader and select Spine\Sprite\Pixel Lit, Vertex Lit or Unlit.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Monster Rush:Draw Puzzle怪物冲刺拼图 Unity益智解谜游戏项目源码C# 支持Unity版本2021.3.14f1及以上 描述 Monster Rush:Draw Puzzle 是结合逻辑思维的最佳益智游戏 怎么玩 这一切都取决于你无限的想象力: 1. 按住并拖动屏幕开始绘制线条 2.画出怪物获取工具的路径 3.找到到达目的地的最快路线 4.一路上有很多陷阱和障碍,要小心!!!
资源推荐
资源详情
资源评论
收起资源包目录
Monster Rush:Draw Puzzle怪物冲刺拼图 Unity益智解谜游戏项目源码C# (2000个子文件)
spine-unity-examples.asmdef 86B
ProjectSettings.asset 21KB
InputManager.asset 10KB
QualitySettings.asset 7KB
GraphicsSettings.asset 2KB
Physics2DSettings.asset 2KB
NavMeshAreas.asset 1KB
DynamicsManager.asset 1KB
whirlyblendmodes_SkeletonData.asset 1KB
EditorSettings.asset 1KB
MemorySettings.asset 1KB
PackageManagerSettings.asset 1KB
lmao 2_SkeletonData.asset 1KB
Stinger_SkeletonData.asset 1022B
lmao4_SkeletonData.asset 1020B
lmao3_SkeletonData.asset 1019B
lmao3_SkeletonData.asset 1019B
UnityConnectSettings.asset 943B
Amogus_SkeletonData.asset 914B
lmao 5_SkeletonData.asset 913B
lmao 5_SkeletonData.asset 913B
lmao 2_SkeletonData.asset 913B
lmao4_SkeletonData.asset 912B
lmao4_SkeletonData.asset 912B
lmao3_SkeletonData.asset 912B
lmao_SkeletonData.asset 911B
lmao_SkeletonData.asset 911B
lmao_SkeletonData.asset 911B
lmao_SkeletonData.asset 911B
hero-pro_SkeletonData.asset 791B
spineboy-pro_SkeletonData.asset 789B
AMOGUS 6_Atlas.asset 780B
spineboy-unity_SkeletonData.asset 779B
raptor-pro_SkeletonData.asset 740B
mix-and-match-pro_SkeletonData.asset 692B
stretchyman_SkeletonData.asset 684B
raptor_SkeletonData.asset 681B
goblins_SkeletonData.asset 680B
Doi_SkeletonData.asset 678B
Raggedy Spineboy_SkeletonData.asset 663B
FootSoldier_SkeletonData.asset 658B
dragon_SkeletonData.asset 653B
Gauge_SkeletonData.asset 652B
eyes_SkeletonData.asset 651B
dragon_Atlas.asset 636B
stretchyman-diffuse-pma_Atlas.asset 582B
mix-and-match-pma_Atlas.asset 576B
Raggedy Spineboy_Atlas.asset 575B
whirlyblendmodes_Atlas.asset 575B
mommylongleg_Atlas.asset 571B
spineboy-pro_Atlas.asset 571B
Banbanleena_Atlas.asset 570B
raptor-pma_Atlas.asset 569B
Equipment_Atlas.asset 568B
spineboy_Atlas.asset 567B
FS_White_Atlas.asset 567B
hero-pro_Atlas.asset 567B
oploids_Atlas.asset 566B
Stinger_Atlas.asset 566B
goblins_Atlas.asset 566B
NabNab_Atlas.asset 565B
ChoCho_Atlas.asset 565B
Banban_Atlas.asset 565B
purple_Atlas.asset 565B
orange_Atlas.asset 565B
raptor_Atlas.asset 565B
huggy_Atlas.asset 564B
Sline_Atlas.asset 564B
Venom_Atlas.asset 564B
Green_Atlas.asset 564B
Gauge_Atlas.asset 564B
Josh_Atlas.asset 563B
Blue_Atlas.asset 563B
eyes_Atlas.asset 563B
Doi_Atlas.asset 562B
Goggles Normal.asset 538B
Goggles Tactical.asset 531B
Gun Freeze.asset 530B
TagManager.asset 505B
Gun Normal.asset 503B
crouch-from fall.asset 492B
idle-from fall.asset 488B
run-from fall.asset 486B
run-to-idle.asset 482B
hoverboard.asset 480B
head-turn.asset 478B
idle-turn.asset 478B
jump old.asset 476B
gun toss.asset 476B
diagonal.asset 476B
jump rm.asset 474B
idlebag.asset 474B
hit old.asset 474B
walk rm.asset 474B
gungrab.asset 474B
gunkeep.asset 474B
frozen.asset 472B
run rm.asset 472B
footstep.asset 472B
attack.asset 472B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
小云同志你好
- 粉丝: 1051
- 资源: 999
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功