Topic category: User side tutorials
The procedures in the list "Render effects" allow you to get advanced rendering effects.
They can only be used on the following events.
- Graphics - Render clouds
- Graphics - Render overlays
- Graphics - Render shapes
- Graphics - Render sky
- Graphics - Render weather
Textures
The procedure allows you to set a texture for rendering. There is the procedure in the list "Graphics procedures - Render effects."
Note that texture strips are not animated.
- ID: It is your mod ID.
- Name: It is a texture name. ".png" is not necessary. For example, if a texture name is "custom_skybox.png", set a name "custom_skybox".
A texture needs to be set before rendering.
Textures need to be imported as "Other textures."
In order to make sure of your mod ID, open item "Workspace > Workspace settings", and see the following.
Blending
World Renderer allows you to configure how two colors are blended.
Here is a list of blend modes
- ADDITION: It adds two RGB values based on the alpha values.
- ALPHA: It merges two RGB values based on the alpha values.
- DEFAULT: It's the same as ALPHA
- MULTIPLICATION: It multiplies two RGB values based on the alpha values.
Culling
If the culling is enabled, the back faces of polygons will not be rendered.
It is enabled by default for shape rendering. If you require back faces of polygons, you will need to disable it.
Depth Test
If the depth test is enabled, objects behind other objects will be hidden just as they would be in the real world.
If it is disabled, objects will always be rendered without being hidden by other objects.
Depth Mask
If depth mask is enabled, the depth values of objects are written to the screen's pixels.
The depth values are used in the depth test.
Color Mask
The procedure allows you to set the RGBA components that can be written to the screen.
The components that are set to false will not be written to the screen.
I have a problem with the "Color Mask" procedure block where the "loading terrain" text and dirt background gets stuck on my screen and won't go away, it also does it with the inventory and pause menu and I can't figure out how to fix it, please help! D:)
Minecraft version is forge 1.20.1 and MCreator version is 2024.2
images:
Render effects can only be used for certain event triggers. See the list of event triggers above in this tutorial.
You may fix the problem by setting all the color components to true after rendering the objects.
Thank you for the reply, I did end up eventually figuring out how to get the effect I was looking for after some trial and error, I managed to narrow it down to the "Calculate fog color" trigger in which I put the "Color Mask" procedure block by itself! :P
I ended up having to create an overlay texture to trick the game into getting rid of the "loading terrain" text, it's not perfect and it's still seriously bugy, but all I really needed it for was as a video effect for something I plan on making for youtube so it should be good enough for that at least!! :D lol
Images of the final results I was looking for:
Also, I found what I think is a glitch/bug where calculating the light color of blocks and sky doesn't change the color of the block light of blocks that have both block light and sky light, which is the whole reason why I went down this rabbit hole anyways!
IDK just thought I'd mention it as well just in case it is a bug or something that can be fixed in a future version of this plugin, I really do love this plugin BTW, besides this I've never had any problems with it and it's super useful!! :D
Image example:
with "Calculate fog color" procedure:
without "Calculate fog color" procedure:
why am i getting x-ray now :DD is the nether effects type broken?
oh finally changed every flag and return to true