Version: Unity 6.0 (6000.0)
언어 : 한국어
ShaderLab: 레거시 버텍스 데이터 채널 매핑
HLSL pragma 지시문 레퍼런스

HLSL semantics reference

Explore the semantics you can use to input mesh data into custom shaders in High-Level Shader Language (HLSL) in Unity.

Semantic Description Type
POSITION The vertex position. float3 or float4
NORMAL The vertex normal. float3
TEXCOORD0 The first UV coordinates. float2, float3, or float4
TEXCOORD1 The second UV coordinates. float2, float3, or float4
TEXCOORD2 The third UV coordinates. float2, float3, or float4
TEXCOORD3 The fourth UV coordinates. float2, float3, or float4
TANGENT The tangent vector used for normal mapping. float4
COLOR The per-vertex color. float4
VPOS The pixel position in screen space. You can use VPOS only in the fragment shader. Use UNITY_VPOS_TYPE for cross-platform compatibility, which is float4 on most platforms.
VFACE Indicates whether the pixel surface is facing the camera. float
SV_VertexID The index of the vertex. You can’t use SV_VertexID in Surface Shaders. uint

Additional resources

ShaderLab: 레거시 버텍스 데이터 채널 매핑
HLSL pragma 지시문 레퍼런스
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961