浏览代码

* Removed setup instance.

/main
thomas-zeng 5 年前
当前提交
0291227e
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 2
      Packages/com.verasl.water-system/Shaders/WaterCommon.hlsl

2
Packages/com.verasl.water-system/Shaders/WaterCommon.hlsl


{
WaterVertexOutput o;// = (WaterVertexOutput)0;
UNITY_SETUP_INSTANCE_ID(v);
UNITY_TRANSFER_INSTANCE_ID(v, o);
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
o.uv.xy = v.texcoord; // geo uvs

// Fragment for water
half4 WaterFragment(WaterVertexOutput IN) : SV_Target
{
UNITY_SETUP_INSTANCE_ID(IN);
UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(IN);
half3 screenUV = IN.shadowCoord.xyz / IN.shadowCoord.w;//screen UVs

正在加载...
取消
保存