Custom Emissive Texture - GregTechCEu/GregTech GitHub Wiki
Developers and resource pack authors can easily have emissive textures and set bloom effects.
Emissive Texture
- For model-based blocks: Similar to CTM, you only need to set
mcmetafile for the texture that you want to have the emissive effect.
{
"ctm": {
"ctm_version": 1,
"gregtech": true,
"extra": {
"light": 15
}
}
}
light here represents the default level of light it emits (from 0~15). You can also set sky and block separately, as CTM does.
- For CEu machines: They are mostly overlay textures in
assets/textures/blocks/machinesandassets/textures/overlay/machines. You do not need to set the mcmeta file for them. Just add a new texture file for the emissive part namedXXX_emissive.png.
Bloom
- For CEu machines: You don't need to modify anything; all emissive textures have the bloom effect by default.
- For model-based blocks: You just need to add an extra line to the
mcmetafile:"layer": "BLOOM".
{
"ctm": {
"ctm_version": 1,
"layer": "BLOOM",
"gregtech": true,
"extra": {
"light": 15
}
}
}
DEMO
