当前位置:网站首页>Summary of introduction to unityshader (2): Beginner Level
Summary of introduction to unityshader (2): Beginner Level
2022-07-29 09:24:00 【Starve fish】
violet : General concepts or brief and powerful summaries
Blue : Subdivide concepts or important parts
Red : Important supplementary notes
The fifth chapter : know UnityShader
Start with the simplest shader structure

A basic code that contains vertex shaders and slice shaders
#pragma Defines the shader type
vertex For the top ,fragment Is a piece element (shader It uses CG grammar )

Among them Fixed4,float4 What does waiting mean ?

Look at an advanced version of the code that links vertex and fragment shaders

If you think it's more winding . You can temporarily treat the colon as " From " understand
float4 vertex : POSITION
Like creating a float4 Variable vertex, It comes from POSITION( Model space vertex coordinates )
This time, vert Returned a v2f Structure rather than float4 了 . And finally frag Also successfully quoted v2f Finish coloring
(vertex.normal It's normal )


Call the property
Attributes are variables that can be changed in the editor interface . Use Properties

Reference directly in the shader

such , A color can be adjusted at any time shader Just do it

边栏推荐
- [unity entry program] collection of common learning websites
- 基于C语言实现的NFA确定化和DFA最小化
- MySQL converts some table names to uppercase
- What should I pay attention to now? Excuse me, is it safe to open a stock account by mobile phone?
- md
- On contract testing
- Unity 引导系统.点击目标物体后提示文字变色进入下一步
- Data representation and calculation (base)
- One article tells you the salary after passing the PMP Exam
- ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)
猜你喜欢

Summary of some experiences in the process of R & D platform splitting

浅谈契约测试

使用cpolar发布树莓派网页(cpolar隧道的完善)

Safety is no longer the only selling point. Test drive "slash youth" Volvo C40

MySQL事务与MVCC如何实现的隔离级别

怎样查询快递物流筛选出无信息单号删除或者复制

基于C语言实现的NFA确定化和DFA最小化

C # use database to bind listview control data

Retinal Vessel Segmentation via a Semantics and Multi-Scale Aggregation Network

smart-webcomponents 14.2.0 Crack
随机推荐
文件上传及拓展
No duplicate data in the same field of different databases
Sublime text create page
(Video + graphic) introduction to machine learning series - Chapter 3 logical regression
MySQL error summary
[performance optimization methodology series] III. core idea of performance optimization (2)
高智伟:数据管理赋能交通行业数字化转型
Summary of some experiences in the process of R & D platform splitting
Redis series 3: highly available master-slave architecture
[苹果开发者账号]06 转让开发者账号后,开发者年费自动续费问题
[unity entry program] collection of common learning websites
40余岁的边缘老技术,是未来乏力还是掘地而起?
Fluent text editor
User identity identification and account system practice
23 postgraduate entrance examination people hold on! The first wave of exam abandonment peak has arrived!
23考研人撑住!考研第一波弃考高峰期已经到来!
多标签用户画像分析跑得快的关键在哪里?
(Video + graphics) introduction to machine learning series - Chapter 1 Introduction
Want to know how to open an account through online stock? Excuse me, is it safe to open a stock account by mobile phone?
Shutter gradient