How do I get blockEntityId in final.fsh?

I want to render some block slightly different in my shader. I under stand that im supposed to be able to get blockEntityId in a buffer, but I have been unsuccessful so far.
Solution:
solution, I needed to define draw buffers like this /* DRAWBUFFERS:01 */ I pass the mc_Entity from vsh, to fsh using a varying float. ...
Jump to solution
4 Replies
hardester
hardester2w ago
I highly recommend joining the shaderLABS Discord server for all questions regarding shader development. That server is specialized in Minecraft shader development. https://discord.gg/RpzWN9S
an Item
an Item2w ago
tank you, but whats this server for then? I was in the documentation and pressed the discord link there to get help.
Slooshie
Slooshie2w ago
This server is mainly for the average user, not shader developers shaderLABS has more resources and people to help you develop and troubleshoot a shader
Solution
an Item
an Item2w ago
solution, I needed to define draw buffers like this /* DRAWBUFFERS:01 */ I pass the mc_Entity from vsh, to fsh using a varying float. and i write to buffer like this
//Output the result.
gl_FragData[0] = col;
gl_FragData[1] = vec4(mcEntity-1,0,0,0);
//Output the result.
gl_FragData[0] = col;
gl_FragData[1] = vec4(mcEntity-1,0,0,0);
Want results from more Discord servers?
Add your server