How does Iris handle End Gateway/Portal rendering with shaders?

I'm trying to render an end gateway block but I'm having trouble with it when I enable shaders: I'm trying to understand how Iris renders them with shaders but I can't seem to find where to start: https://github.com/IrisShaders/Iris/blob/f0f6a27453d44a18e1c655880dca0baf2de03c9a/src/main/java/net/coderbot/iris/mixin/MixinGameRenderer.java#L403 Code:
public static void renderMirageBlockEntity(BlockEntity blockEntity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers){
blockEntityRenderDispatcher.render(blockEntity,tickDelta,matrices,vertexConsumers);
}
public static void renderMirageBlockEntity(BlockEntity blockEntity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers){
blockEntityRenderDispatcher.render(blockEntity,tickDelta,matrices,vertexConsumers);
}
GitHub
Iris/src/main/java/net/coderbot/iris/mixin/MixinGameRenderer.java a...
A modern shaders mod for Minecraft compatible with existing OptiFine shader packs - IrisShaders/Iris
7 Replies
previewBOT
previewBOT9mo ago
IrisShaders/Iris (on f0f6a27453d44a18e1c655880dca0baf2de03c9a) src/main/java/net/coderbot/iris/mixin/MixinGameRenderer.java
403 | // ignored: getRendertypeEndGatewayShader (we replace the end portal rendering for shaders)
403 | // ignored: getRendertypeEndGatewayShader (we replace the end portal rendering for shaders)
TheNukeLore
TheNukeLore9mo ago
Could be wrong but I think shaders themselves handle that rendering Iris just passes in general data and such
PHOBOSS
PHOBOSSOP9mo ago
ok, thanks I'll try asking BSL guys too about it the guy could only point me to the shader code... slr, what does that mean exactly? does it let the .glsl shader code overwrite it or something?
PHOBOSS
PHOBOSSOP9mo ago
GitHub
Iris/src/main/java/net/coderbot/iris/mixin/MixinTheEndPortalRendere...
A modern shaders mod for Minecraft compatible with existing OptiFine shader packs - IrisShaders/Iris
previewBOT
previewBOT9mo ago
IrisShaders/Iris (on f0f6a27453d44a18e1c655880dca0baf2de03c9a) src/main/java/net/coderbot/iris/mixin/MixinTheEndPortalRenderer.java
22 | public class MixinTheEndPortalRenderer {
22 | public class MixinTheEndPortalRenderer {
PHOBOSS
PHOBOSSOP9mo ago
the thing is the shader is just scrolling the end_portal.png file... I'm guessing this is just the default behavior when the actual shader isn't applied...
PHOBOSS
PHOBOSSOP9mo ago
the thing is why isn't it getting applied... does it count as a "custom shader" if I render endPortalBER through another BER?: https://github.com/IrisShaders/Iris/blob/1.16.5/docs/development/compatibility/core-shaders.md
GitHub
Iris/docs/development/compatibility/core-shaders.md at 1.16.5 · Iri...
A modern shaders mod for Minecraft compatible with existing OptiFine shader packs - IrisShaders/Iris
Want results from more Discord servers?
Add your server