SV_POSITION과 POSITION 의 차이?

Unity3D/Shader 2021. 11. 29. 18:01
반응형

https://forum.unity.com/threads/what-is-the-difference-between-float4-pos-sv_position-and-float4-pos.165351/

 

what is the difference between "float4 pos:SV_POSITION"and "float4 pos;"

why do we need sv_position?

forum.unity.com

 

SV_POSITION은 의미체계(sementic)이다 

그래픽 파이프라인을 통해 데이터들이 어떻게 이동하는지 엔진에게 알려준다 

 

참고

https://docs.unity3d.com/Manual/SL-ShaderSemantics.html

https://mgun.tistory.com/1848

https://blog.naver.com/lifeisforu/80072891298

https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-semantics?redirectedfrom=MSDN 

 

반응형

'Unity3D > Shader' 카테고리의 다른 글

alpha:fade  (0) 2021.11.30
TRANSFORM_TEX  (0) 2021.11.29
what is "ColorMask RGB"  (0) 2021.11.27
unity shader input screenPos  (0) 2021.11.25
Diffuse Texture Gloss Map 만들기 (Alpha)  (0) 2021.11.23
: