//CTMPOMFIX by TIMETRAVELBEARD 2023-7-20: various fixes for ctm with pom, -and then some (for info and tutorial on resource pack formatting for compatibility check my discord or patreon, it will be public) 

//last revised 2023-10-1, v 1.4 alpha a


//I am providing this code FREE TO BE ENJOYED BY THE MINECRAFT COMMUNITY with the following stipulations:

//BASICALLY:
//This is for your personal, non-commercial use. You can include THE PATCH FILE in your Minecraft shader if you ask for permission and I agree.  Do Not Redistribute. Share links not files.



//EXTENDED:

//ABOUT PORTING, USING, OR REDISTRIBUTING THIS CODE:

//ALL RIGHTS RESERVED, DO NOT MODIFY OR REDISTRIBUTE EXCEPT AS STATED BELOW. 

//MODIFICATIONS: Talk to me if there are things you'd like to be changed or added.  I want this to be STANDARDIZED so it's easier to work with and incorporate.

//YOU CAN MODIFY ONLY THE COMPATIBILITY ZONE MARKED BELOW, to make this work in your shader, and only either with my permission, or if you try to reach me at all 3 points of contact listed below, and I am both inactive on those platforms and don't respond in 30 days.

//IF YOU WANT THIS IN YOUR SHADER JUST ASK ME, I will most likely say yes and may even help port it. If you try to reach me at all 3 points of contact listed below, and I am both inactive on those platforms and don't respond in 30 days, then you can include this in your Minecraft shader provided that the shader is free and publically available, or is just for your personal use. 

//METHOD OF INCLUSION: If I agree that you can include this in your shader, you are putting this file in as a standalone file in the shader and using "#include" do not copy paste my code into other files.

//COMMERCIAL OR FOR PROFIT SHADERS OR PRODUCTS, REDISTRIBUTION: If your shader or product is not free to access and publically available, you definitely need my permision to include this code and distribute it in or with your product, and the 30 day contact window does not apply. If you use this code or any derivative in a commercial product without my explicit permission, be prepared for legal recourse. THIS IS PROVIDED BY ME FREE TO BE ENJOYED BY THE MINECRAFT COMMUNITY and while I am alive I want it to stay FREE for minecraft and to be STANDARDIZED. If you want to make money with it then I get some. If you want to use it in any projects, commercial or non-commercial, you need to ask.

//CREDIT
//I wrote this code, do not take credit for it. if i give you permission to use this in your shader, credit me in whatever way you credit contributors to your project. 



//CONTACT ME VIA:

//My Patreon https://www.patreon.com/timetravelbeard

//My YouTube https://youtube.com/@timetravelbeard3588

//My Discord Server https://discord.gg/S6F4r6K5yU

//*Discord is currently my prefered point of contact


//THERE IS ALSO A LICENCE EMBEDDED IN THE CTMPOMFIX.GLSL FILE. IF THERE ARE DIFFERENCES BETWEEN THIS ONE AND THAT ONE, THE ONE IS MORE UPDATED TAKES PRIORITY 