浏览代码

* Fixed water shader FX not working in multiview.

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

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


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
half4 waterFX = SAMPLE_TEXTURE2D_X(_WaterFXMap, sampler_ScreenTextures_linear_clamp, IN.preWaveSP.xy);

正在加载...
取消
保存