Andre McGrail 6 年前
当前提交
53121d00
共有 2 个文件被更改,包括 5 次插入6 次删除
  1. 9
      Packages/com.verasl.water-system/Scripts/Rendering/WaterFXPass.cs
  2. 2
      README.md

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);
}

2
README.md


[Alex Best](https://big_ally.artstation.com) - Modeling, Texturing
[Stinta](https://soundcloud.com/stintah) - Soundtrack
[Stintah](https://soundcloud.com/stintah) - Soundtrack
Special thanks to:

|||||||
100:0
正在加载...
取消
保存