Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using shaders with conditions only updates when you toggle perspective #334

Closed
IanuReeves opened this issue May 21, 2023 · 1 comment
Closed
Assignees

Comments

@IanuReeves
Copy link

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"
		}
	},
@LadyAelita
Copy link

LadyAelita commented Jun 30, 2023

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"
					}
				}
			}
		]
	}
}

@MerchantPug MerchantPug self-assigned this Jul 21, 2023
MerchantPug added a commit to EdwinMindcraft/apoli that referenced this issue Jul 21, 2023
MerchantPug added a commit to EdwinMindcraft/apoli that referenced this issue Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants