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.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Kyvir: Rebirth 地牢重生 Unity单人RPG卡牌游戏项目源码C# 描述 支持Unity版本2018.4.36f1及以上 深入探索基维尔的地牢。与各种危险的敌人作战,并追捕预言中的末日龙。 Kyvir: Rebirth 是一款单人卡牌游戏,融合了 RPG、套牌构建和 Roguelike 游戏元素。该游戏采用原创的双套牌机制,数百种独特的物品、技能和卡牌供您尝试。可能性是无限的,确保每次冒险都有独特的体验。 特征 目前在早期访问期间有两个可玩的类别,每个类别都有完全不同的设备、技能和卡牌。 九个级别的地牢探索。 超过60种随机事件。 超过 100 张类别卡和实用卡。 超过 100 种不同的职业技能。 超过180种独特的设备。 超过60种敌人。 Roguelike 游戏玩法具有持续进展的元素。 随着我们更新 Kyvir 的世界,还会有更多内容
资源推荐
资源详情
资源评论


























收起资源包目录





































































































共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论

- 默默o的鱼2024-04-22实在是宝藏资源、宝藏分享者!感谢大佬~
- shxxfl2025-04-16非常有用的资源,可以直接使用,对我很有用,果断支持!

小云同志你好
- 粉丝: 1073
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 中国建设银行电子商务金融服务平台商城账户操作手册.doc
- 酒水行业网络营销.doc
- 网络营销规划书.docx
- 计算机局域网工作组无法访问无法共享资源解决方案.doc
- 最新国家开放大学电大《机电一体化系统》网络核心课形考网考作业及答案.pdf
- 校园网网站建设经验谈.docx
- 项目八网络营销效果评价.ppt
- 项目管理施工队伍进场沟通协调对接交底.doc
- 中医体质软件流程演示.ppt
- 电子商务基础知识.pptx
- 佛山电台制播系统集成及附属设备的主要技术参数:.pdf
- 企业网络安全综合设计方案.pptx
- 网络宣传推广方案制作.doc
- 面向Oracle8数据库系统知识.pptx
- 机床仿真软件VERICUT说明书.ppt
- 基于单片机的红外遥控小车设计.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
