Skip to content

Commit

Permalink
Fix glowing shader
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockybombDEV committed Nov 13, 2024
1 parent 3ad51a1 commit 814778b
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 52 deletions.
52 changes: 52 additions & 0 deletions assets/minecraft/shaders/post/entity_outline.1.12.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"vertex": "minecraft:post/sobel",
"fragment": "minecraft:post/entity_sobel",
"samplers": [
{
"name": "InSampler"
}
],
"uniforms": [
{
"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": "InSize",
"type": "float",
"count": 2,
"values": [
1.0,
1.0
]
},
{
"name": "OutSize",
"type": "float",
"count": 2,
"values": [
1.0,
1.0
]
}
]
}
53 changes: 1 addition & 52 deletions assets/minecraft/shaders/post/entity_outline.json
Original file line number Diff line number Diff line change
@@ -1,52 +1 @@
{
"vertex": "minecraft:post/sobel",
"fragment": "minecraft:post/entity_sobel",
"samplers": [
{
"name": "InSampler"
}
],
"uniforms": [
{
"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": "InSize",
"type": "float",
"count": 2,
"values": [
1.0,
1.0
]
},
{
"name": "OutSize",
"type": "float",
"count": 2,
"values": [
1.0,
1.0
]
}
]
}
{"targets":["swap","final"],"passes":[{"name":"entity_outline","intarget":"final","outtarget":"swap"},{"name":"fast_blur","intarget":"swap","outtarget":"final","uniforms":[{"name":"BlurDir","values":[1.0,0.0]},{"name":"Radius","values":[2.0]}]},{"name":"fast_blur","intarget":"final","outtarget":"swap","uniforms":[{"name":"BlurDir","values":[0.0,1.0]},{"name":"Radius","values":[2.0]}]},{"name":"blit","intarget":"swap","outtarget":"final"}]}

0 comments on commit 814778b

Please sign in to comment.