Posted April 24, 20196 yr I was experimenting with rendering, and would like to explore more in the field of shaders. My questions are: What exactly are shaders? How do shaders work? How to use shaders? Alternatively, are there any resources I can read to get a better understanding of how to use shaders? Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
April 24, 20196 yr 1 hour ago, DavidM said: What exactly are shaders? A shader is a program that executes on your GPU. It gets some data as an input and it outputs some data. That's all there is to them. 1 hour ago, DavidM said: How do shaders work? When opengl renders stuff it goes through various passes, during which it may interact with the currently active shader program. An interaction in this case would be opengl passing some data to the program and collecting the results. 1 hour ago, DavidM said: How to use shaders? Write one, bind it before rendering and you are done. Of course shaders are fairly complex and difficult to discribe like that. There are many resources online that introduce you to shaders. Just keep in mind that minecraft isn't exactly shader friendly, as in it's rendering engine is a huge mess of pre 3.0 and post 3.0 GL code. 1 hour ago, DavidM said: Alternatively, are there any resources I can read to get a better understanding of how to use shaders? https://learnopengl.com/Getting-started/Shaders is a good one I am personally aware of, but apart from that just google "opengl shaders tutorial" and I am sure you can find a lot of information out there.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.