I basically use the already existing vertex distance (distance to the player, I guess) to generate a value that I use to modify the result color's RGB chanels (add it to red chanel and substract it from green and blue chanels). All occurences of colorModifier and its addition to Color at the end.I basically use the same animation logic that was used, but to generate some values and add their squares to the result color's RGB chanels (squared values makes the rainbow more rainbowy).All occurences of modifiedRed, modifiedGreen and modifiedBlue and their addition to Color at the end.The (code) changes made to the original are the following: (Please note that it may not work in any other Minecraft snapshots/releases or if any other resource packs is installed. Water becomes blood-red when you get close to it.In addition to the initial resource pack (which adds wubbling leaves and water), it does the following: RainbowsAndBlood-A-Minecraft-shader-for-snapshot-21w10aĪ (demo) resource pack with SHADERS for latest 1.17 snapshot (21w10a)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |