Using shaders with conditions only updates when you toggle perspective
IanuReeves opened this issue ยท 1 comments
I'm having an issue where conditioning the shader to a toggle only updates when I swap perspectives. Here's a piece of my code if that helps solve the problem:
"toggle": {
"type": "origins:toggle",
"active_by_default": false,
"key": {
"key": "key.origins.primary_active"
}
},
"shader": {
"type": "origins:shader",
"condition": {
"type": "origins:power_active",
"power": "*:grand_alteration_toggle"
},
"shader": "minecraft:shaders/post/desaturate.json"
},
"invis": {
"type": "origins:invisibility",
"render_armor": false,
"conditions": {
"type": "origins:power_active",
"power": "*:*_toggle"
}
},
Can confirm
Origins version: 1.19.2-1.7.1.0
Forge version: 43.2.0
"shader": {
"type": "origins:shader",
"shader": "aelitas_dark_origins:shaders/post/blinding_light.json",
"toggleable": false,
"condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:exposed_to_sun"
},
{
"type": "origins:daytime"
},
{
"type": "origins:equipped_item",
"inverted": true,
"equipment_slot": "head",
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"tag": "aelitas_dark_origins:sunglasses"
}
}
}
]
}
}