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.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】: 包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。 包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】: 所有源码都经过严格测试,可以直接运行。 功能在确认正常工作后才上传。 【适用人群】: 适用于希望学习不同技术领域的小白或进阶学习者。 可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【附加价值】: 项目具有较高的学习借鉴价值,也可直接拿来修改复刻。 对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。 【沟通交流】: 有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
收起资源包目录
毕设&课设&项目&实训-基于Xlua的客户端框架,主要逻辑C#,lua主要作用与hotfix.zip (1811个子文件)
hotfix_id_map.lua.txt.20171108175457972 11B
libBuglyBridge.a 396KB
loadxz.anim 87KB
lihgtBg.anim 39KB
btEffect.anim 34KB
shineAni.anim 15KB
round.anim 12KB
showIn.anim 5KB
sucWordAni.anim 4KB
loadingPic.anim 4KB
circleAni.anim 4KB
ProjectSettings.asset 51KB
InputManager.asset 5KB
QualitySettings.asset 5KB
NavMeshAreas.asset 4KB
GraphicsSettings.asset 4KB
Physics2DSettings.asset 4KB
TagManager.asset 4KB
DynamicsManager.asset 4KB
DOTweenSettings.asset 4KB
UnityConnectSettings.asset 4KB
EditorSettings.asset 4KB
EditorBuildSettings.asset 4KB
AudioManager.asset 4KB
TimeManager.asset 4KB
NetworkManager.asset 4KB
ClusterInputManager.asset 4KB
builder.bat 739B
Bugly 10.02MB
signatured1.lua.bytes 200B
signatured2.lua.bytes 177B
signatured3.lua.bytes 177B
SpriteVertexLighting.cginc 14KB
SpriteVertexLighting.cginc 13KB
ShaderShared.cginc 12KB
SpriteSpecular.cginc 9KB
ShaderShared.cginc 9KB
SpritePixelLighting.cginc 7KB
SpriteLighting.cginc 5KB
SpritePixelLighting.cginc 5KB
SpriteLighting.cginc 4KB
ShaderMaths.cginc 2KB
SpriteUnlit.cginc 1KB
SpriteUnlit.cginc 1KB
SpriteShadows.cginc 896B
SpriteShadows.cginc 831B
continueBt.controller 25KB
giveupBt.controller 21KB
cancleBtn.controller 21KB
confirmBt.controller 21KB
giveupBt2.controller 20KB
startBt.controller 20KB
LoginBt.controller 18KB
press.controller 13KB
roundLight.controller 2KB
loadingImage.controller 2KB
successText.controller 2KB
circleCtrl.controller 2KB
startBg.controller 2KB
shineAe.controller 2KB
giveupBg.controller 2KB
tipRed2.controller 2KB
Tips.controller 2KB
box.controller 2KB
bg.controller 2KB
RuntimeTypeModel.cs 88KB
MetaType.cs 79KB
CodeEmit.cs 78KB
SpineEditorUtilities.cs 73KB
TypeModel.cs 73KB
Generator.cs 70KB
Utils.cs 63KB
UnityEngineTransformWrap.cs 60KB
CompilerContext.cs 55KB
UnityEngineVector3Wrap.cs 55KB
ProtoReader.cs 55KB
ObjectTranslator.cs 54KB
Animation.cs 51KB
SpineMesh.cs 50KB
SystemCollectionsGenericList1SystemInt32Wrap.cs 48KB
AttachmentTools.cs 47KB
Hotfix.cs 47KB
SkeletonBaker.cs 44KB
UnityEngineParticleSystemWrap.cs 42KB
AnimationState.cs 42KB
WrapPusher.cs 41KB
ProtoWriter.cs 40KB
StaticLuaCallbacks.cs 39KB
UnityEngineVector4Wrap.cs 39KB
UnityEngineVector2Wrap.cs 39KB
DelegatesGensBridge.cs 38KB
UnityEngineQuaternionWrap.cs 38KB
UnityEngineGameObjectWrap.cs 37KB
SpineSpriteShaderGUI.cs 36KB
UnityEngineRendererWrap.cs 36KB
SkeletonJson.cs 35KB
UnityEngineDebugWrap.cs 35KB
BuglyAgent.cs 34KB
Hall_pb.cs 34KB
SkeletonBinary.cs 34KB
共 1811 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
资源评论
妄北y
- 粉丝: 1w+
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 封装swagger组件,提供全新UI以及无状态登录接口调用解决方案
- 小龙坎支局2024年4月渠道积分核对数据.xlam
- onlyoffice搭建及与alist使用的view.html
- Quadcopter-UAV-attitude-estimation-linux常用命令大全demo
- Quadcopter-UAV-attitude-estimation-based-on-数据库课程设计
- pbdlib-python-master.zip
- 43904245495352013_base.apk
- 基于springboot+vue + redis的工作流审批系统
- 【qt基础语法及实际案例解析】qt基础语法及实际案例解析
- 结课作业.psd
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功