optifine icon indicating copy to clipboard operation
optifine copied to clipboard

Instansing Props Render in Optifine pipeline

Open liray-dev opened this issue 9 months ago • 0 comments

image I have a need to connect a deferred renderer, the most beneficial way for me would be to wedge in a pipeline optifine. Going through a bunch of issues, as well as optifine documentation, I didn't find any explicit examples of connecting a optifine fragment shader :(

2024-05-01_13 55 00 2024-05-01_13 54 54

Questions:

  • My renderer is called in RenderWorldLast, does the hook need to call it elsewhere?
  • Do I need to somehow explicitly notify optifine when my objects are rendered?
  • How do I even implement the transfer of vertices and normals from my vertex shader to optifine's fragment shader ?
  • Do I need to rewrite the shader (notionally BSL) for instantiation?

As a result, I would like to expect shadow projection into the world, as well as the pbr itself from BSL

I would be glad to get a link to an article or another question similar to mine. Thank you very much in advance.

By the way, there are some attempts to replicate rendering as in mcgltf and shader image image

Naturally no result, very much looking forward to your support!

liray-dev avatar May 01 '24 09:05 liray-dev