浏览代码

Updated BoatAttack because of api changes in LWRP.

/main
Felipe Lira 6 年前
当前提交
19618638
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 9
      Packages/com.verasl.water-system/Scripts/Rendering/WaterFXPass.cs

9
Packages/com.verasl.water-system/Scripts/Rendering/WaterFXPass.cs


};
}
public override void Execute(ScriptableRenderer renderer, ref ScriptableRenderContext context,
ref CullResults cullResults, ref RenderingData renderingData)
public override void Execute(ScriptableRenderer renderer, ScriptableRenderContext context, ref RenderingData renderingData)
RenderTextureDescriptor descriptor = ScriptableRenderer.CreateRTDesc(ref renderingData.cameraData);
RenderTextureDescriptor descriptor = ScriptableRenderer.CreateRenderTextureDescriptor(ref renderingData.cameraData);
descriptor.width = (int) (descriptor.width * 0.5f);
descriptor.height = (int) (descriptor.height * 0.5f);

{
Camera camera = renderingData.cameraData.camera;
context.StartMultiEye(camera);
context.DrawRenderers(cullResults.visibleRenderers, ref drawSettings, transparentFilterSettings);
context.DrawRenderers(renderingData.cullResults.visibleRenderers, ref drawSettings, transparentFilterSettings);
context.DrawRenderers(cullResults.visibleRenderers, ref drawSettings, transparentFilterSettings);
context.DrawRenderers(renderingData.cullResults.visibleRenderers, ref drawSettings, transparentFilterSettings);
}

正在加载...
取消
保存