当前位置:网站首页>Unityshader Foundation
Unityshader Foundation
2022-04-23 07:47:00 【youth who behaves like an adult】
Common semantics in vertex shader input structures
- POSITION--------- Vertex position in model space , Usually float4 type
- NORMAL--------- Vertex normals , Usually float3 type
- TANGENT-------- Vertex tangent , Usually float4 type
- TEXCOORDn----- The texture coordinates of the vertex ,TEXCOORD0 Represents the first set of coordinate textures , By analogy , Usually float2,float4 type
- COLOR----- Vertex color , Usually fixed4 or float4 type
Shader Model edition |
TEXCOORDn in N Number of supported |
Shader Model2 |
8 |
Shader Model3 |
8 |
Shader Model4 |
16 |
Shader Model5 |
16 |
Common semantics in vertex shader output structures
- SV_POSITION------ Vertex coordinates in clipping space , The structure must contain a variable modified with this semantics . Equate to DX9 Medium POSITION.
- COLOR0------ Usually used to output the first set of vertex colors , It's not necessary
- COLOR1------ Usually used to output a second set of vertex colors , It's not necessary
- TEXCOORD0-TEXCOORD7------- Usually used to output texture coordinates , It's not necessary
Semantics commonly used in slice shader output (SV_Target--- The output value will be stored in the render target (render target) in . Equate to DX9 in COLOR semantics .)
版权声明
本文为[youth who behaves like an adult]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230626190841.html
边栏推荐
猜你喜欢
FSM finite state machine
SAP ECC连接SAP PI系统配置
Nacos / sentinel gateway current limiting and grouping (code)
MySQL index
js之DOM学习获取元素
SAP PI/PO rfc2RESTful 發布rfc接口為RESTful示例(Proxy間接法)
SAP RFC_CVI_EI_INBOUND_MAIN BP主数据创建示例(仅演示客户)
MySQL8.0 安装/卸载 教程【Window10版】
Robust and Efficient Quadrotor Trajectory Generation for Fast Autonomous Flight
How to judge whether a point is within a polygon (including complex polygons or a large number of polygons)
随机推荐
Page dynamic display time (upgraded version)
定位、修饰样式
9. Common functions
8. Paging query
11. Table and library management
面经的总结
unity 屏幕自适应
利用网页表格导出EXCEL表格加线框及表格内部间距的问题
ES6使用递归实现深拷贝
保研准备经验贴——18届(2021年)中南计科推免到浙大工院
Simple random roll call lottery (written under JS)
How to judge whether a point is within a polygon (including complex polygons or a large number of polygons)
int a = 1存放在哪
Mvcc (multi version concurrency control)
14. Transaction processing
Daily question | fear dominated by reverse linked list
将单行文字自动适应到目标矩形框内
Common DOS commands
系统与软件安全研究(二)
3. Sort statement