-
Notifications
You must be signed in to change notification settings - Fork 40
Fix in order to run with Alex's Mobs Neoforge 1.21.1 #219
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
168a3a8
Fix runtime error when run with alexmobs
crabsatellite 5819e78
Update rendertype_rainbow_aura shader configuration and add vertex sh…
crabsatellite 40491e5
Register ClientProxy to event bus only in client environment
crabsatellite 6d6503b
Refactor message registration to clarify bidirectional and client-spe…
crabsatellite 102f623
Improve entity creation logging in GuiBasicBook and EntityLinkButton
crabsatellite be14e0e
Fix default rotation speed for CitadelPatreonRenderer and update mixi…
crabsatellite 1a62cbc
Format mixin and client entries in citadel.mixins.json for consistency
crabsatellite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,3 +24,5 @@ runs | |
|
|
||
| # Files from Forge MDK | ||
| forge*changelog.txt | ||
|
|
||
| .vscode | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 36 additions & 21 deletions
57
src/main/resources/assets/citadel/shaders/core/rendertype_rainbow_aura.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,38 @@ | ||
| { | ||
| "blend": { | ||
| "func": "add", | ||
| "srcrgb": "srcalpha", | ||
| "dstrgb": "1-srcalpha" | ||
| "blend": { | ||
| "func": "add", | ||
| "srcrgb": "srcalpha", | ||
| "dstrgb": "1-srcalpha" | ||
| }, | ||
| "vertex": "citadel:rendertype_rainbow_aura", | ||
| "fragment": "citadel:rendertype_rainbow_aura", | ||
| "attributes": ["Position", "Color", "UV0"], | ||
| "samplers": [{ "name": "Sampler0" }], | ||
| "uniforms": [ | ||
| { | ||
| "name": "ModelViewMat", | ||
| "type": "matrix4x4", | ||
| "count": 16, | ||
| "values": [ | ||
| 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, | ||
| 0.0, 1.0 | ||
| ] | ||
| }, | ||
| "vertex": "position_color_tex", | ||
| "fragment": "citadel:rendertype_rainbow_aura", | ||
| "attributes": [ | ||
| "Position", | ||
| "Color", | ||
| "UV0" | ||
| ], | ||
| "samplers": [ | ||
| { "name": "Sampler0" } | ||
| ], | ||
| "uniforms": [ | ||
| { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, | ||
| { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, | ||
| { "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }, | ||
| { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] } | ||
| ] | ||
| } | ||
| { | ||
| "name": "ProjMat", | ||
| "type": "matrix4x4", | ||
| "count": 16, | ||
| "values": [ | ||
| 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, | ||
| 0.0, 1.0 | ||
| ] | ||
| }, | ||
| { | ||
| "name": "ColorModulator", | ||
| "type": "float", | ||
| "count": 4, | ||
| "values": [1.0, 1.0, 1.0, 1.0] | ||
| }, | ||
| { "name": "GameTime", "type": "float", "count": 1, "values": [0.0] } | ||
| ] | ||
| } |
17 changes: 17 additions & 0 deletions
17
src/main/resources/assets/citadel/shaders/core/rendertype_rainbow_aura.vsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #version 150 | ||
|
|
||
| in vec3 Position; | ||
| in vec4 Color; | ||
| in vec2 UV0; | ||
|
|
||
| uniform mat4 ModelViewMat; | ||
| uniform mat4 ProjMat; | ||
|
|
||
| out vec4 vertexColor; | ||
| out vec2 texCoord0; | ||
|
|
||
| void main() { | ||
| gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); | ||
| vertexColor = Color; | ||
| texCoord0 = UV0; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.