Quantcast
Channel: Questions in topic: "hlsl"
Viewing all articles
Browse latest Browse all 206

Access to svPosition in fragment shader

$
0
0
I am trying to access to the svPosition in my fragment program in Unity but I keep having this error. invalid input semantic 'POSITION': Legal indices are in [1,15] invalid ps_3_0 input semantic 'POSITION' Here are some information about my whole shader. struct : float4 pos : SV_POSITION; vertex : o.pos = mul(UNITY_MATRIX_MVP, v.vertex); fragment : col.rgb = i.pos.xyz; Any idea how to access this value ?

Viewing all articles
Browse latest Browse all 206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>