Create an account

SRMI RabbitFX - Glow FX, Decensor, Stable textures no

Was this mod useful? —
No votes yet
Upload: 25 Apr 2026, 09:14
Description

Default Keybinds:
Toggle Censor Filter - \
ーーーーーーーーーーーーーーーーーーーー
Incompatible with other Censor Filter removers

Hey everyone!

It's been over a year since I made something for Star Rail, I've learned a lot during that period of time, especially from making effect modding tools based off the amazing TexFX for Zenless Zone Zero and Wuthering Waves. And so I've decided it's finally time to bring those features here to Star Rail.

I've gotten quite a few requests for a Star Rail version, but I've never gotten around to it until now with help from SinsOfSeven and letting me borrowing the code for hue-shifting from TexFX.

It's probably not as well written as it would be if Sins was in charge but it works relatively well and allows glowing patterns to be made for mods.

It also comes with a Censor Filter remover due to it conflicting with existing removers.

ーーーーーーーーーーーーーーーーーーーー

For the average user, place the files into your mod folder and that's all you need to know. 

For modders wishing to use RabbitFX for glow related effects read on. 

Please be aware that some level of knowledge on how to make texture mods is required as this is not a guide on how to make mods, rather a guide on how to use this tool to further enhance your mods.

ーーーーーーーーーーーーーーーーーーーー


There is a fundamental change in how RabbitFX works compared to TexFX for Genshin. Instead of using just the blue and green channel for controlling luminence and bloom, an entire RGBA texture is dedicated for glow. 

What each channel does is relatively straight forward, RGB dictates the colour of the glow and the alpha channel dictates the brightness.

Once created, pass this texture off to RabbitFX before the component is drawn by using the following command: 

Resorce\RabbitFX\GlowMap = ResouceName 


and call the command 

run = CommandList\RabbitFX\Run


This is the bare minimum needed to activate RabbitFX.

Another feature RabbitFX has is the ability to shift colours through the use of HSV courtesy of SinsOfSeven. Just like in picture editing softwares, Hue is shifted with by a value ranging from 0 - 360 with it fully wrapping around at 360. Saturation and brightness can also be adjusted with S and V respectively. These values can be set with the following values

$\rabbitfx\h
$\rabbitfx\s
$\rabbitfx\v
$\rabbitfx\brightness


Another thing you can do is set an Interpolation value from 0 - 1 that lets you transition towards your target colour for better special FX modding with 0 being the original colour and 1 being the target colour. This can be set using the following value

$\rabbitfx\interpolate


Here is a snippet from my Fofo mod to give you a better idea on how it works, note all values other than Resorce\RabbitFX\GlowMap = ResouceName and run = CommandList\RabbitFX\Run are optional.

[TextureOverrideFoFoHairA]
match_first_index = 0
match_first_index = 0
Resource\RabbitFX\GlowMap = ResourceFoFoHairFX
$\RabbitFX\brightness = 2
$\RabbitFX\h = 0
$\RabbitFX\s = 0
$\RabbitFX\v = 0
run = CommandList\RabbitFX\Run


Here is an example of how the effect mask is made.

This is the texture for the Fofo's body.

I want to make just her tail glow so I make a seperate texture that is completely black with the parts I want to glow coloured in like so.

Next, on the alpha channel I colour in the same parts in white to show that I want these areas to be bright.

Next I set the brightness of the mod to 2, pass the texture off to RabbitFX and run the RabbitFX command.

Resource\RabbitFX\GlowMap = ResourceFoFoBodyFX
$\RabbitFX\brightness = 2
run = CommandList\RabbitFX\Run


And this is the result.

- Stable texture slots -

In order to make the glow color work, I had change how textures are being sampled, so while I was at it, I added the ability to just swap out which texture shaders are sampling. This means that it is possible to set textures through RabbitFX and not have to worry about texture hashes. 

By doing this, as long as RabbitFX doesn't break, you shouldn't have to worry about texture hashes changing during updates.

To use this new feature, you must take note of all the textures being used in the mod and which parts of your mod it corresponds to.

For example:

[TextureOverrideCharacterBodyA]
hash = 
Match_first_Index = 0
ib = ResourceCharacterBodyAIB
Drawindexed = 1000, 0, 0

[TextureOverrideCharacterBodyADiffuse]
hash = 
this = ResourceCharacterBodyADiffuse

[TextureOverrideCharacterBodyALightMap]
hash = 
this = ResourceCharacterBodyALightMap


This then becomes

[TextureOverrideCharacterBodyA]
hash = 
Match_first_Index = 0
ib = ResourceCharacterBodyIB
Resource\RabbitFX\Diffuse = ref ResourceCharacterBodyADiffuse
Resource\RabbitFX\Lightmap = ref ResourceCharacterBodyALightMap
run = Commandlist\RabbitFX\SetTextures
Drawindexed = 1000, 0, 0


As you can see, it significantly simplifies the textures sections and there are less hashes that can break per update.

I've included an example mod for everyone to have a look at that hopefully better demonstrates how RabbitFX works for Star Rail.

- Outline Texture -

This was a feature that Gustav0_ requested from me, I actually built it months ago but I had forgotten to actually release it...

I believe the premise was this, if you wanted to retexture someone's hair color for example, the outlines wouldn't change along with it and it looked a little bit weird.

As an example, here is our lovely main character.

Her default hair texture looks like this.

Let's change it to pink to match Myurion.

Resource\RabbitFX\Diffuse = ref ResourceHairDiffuse
run = CommandList\RabbitFX\SetTextures

This is the result.

The outlines are still black and we would like it to also be pink as well, this is where RabbitFX's outline texture comes in!

We need to create a new texture with the desired color for the outline texture and set it using the line: 

Resource\RabbitFX\Outlinemap = ref ResourceOutlinemap


In this case, we just want the outline to be the same color, so we can just pass the diffuse texture as the outline texture.

So we simply just do:

Resource\RabbitFX\Diffuse = Ref ResourceHairDiffuse
run = CommandList\RabbitFX\SetTextures
Resource\RabbitFX\Outlinemap = ref ResourceHairDiffuse
run = CommandList\RabbitFX\Run


And this is the result we get!

Now the outline matches the hair's pink!
I included a small demo file for reference.

I believe in you modders!
Happy modding!

Comments
The minimum comment length is 10 characters.