Amaranita mushroom blocks (WIP), shaders for new plants

This commit is contained in:
paulevsGitch 2021-03-01 01:06:04 +03:00
parent 5e3a3ef6cd
commit 4aec8487fa
33 changed files with 229 additions and 1 deletions

View file

@ -0,0 +1,7 @@
{
"variants": {
"axis=x": { "model": "betterend:block/amaranita_hyphae", "x": 90, "y": 90 },
"axis=y": { "model": "betterend:block/amaranita_hyphae" },
"axis=z": { "model": "betterend:block/amaranita_hyphae", "x": 90 }
}
}

View file

@ -0,0 +1,8 @@
{
"variants": {
"": [
{ "model": "betterend:block/clawfern_01" },
{ "model": "betterend:block/clawfern_02" }
]
}
}

View file

@ -0,0 +1,10 @@
{
"variants": {
"": [
{ "model": "betterend:block/globulagus_01" },
{ "model": "betterend:block/globulagus_02" },
{ "model": "betterend:block/globulagus_03" },
{ "model": "betterend:block/globulagus_04" }
]
}
}

View file

@ -0,0 +1,3 @@
{
"defaultMaterial": "betterend:waving_floor_glow_green"
}

View file

@ -0,0 +1,3 @@
{
"defaultMaterial": "betterend:waving_floor_glow_green"
}

View file

@ -0,0 +1,10 @@
{
"layers": [
{
"vertexSource": "betterend:shaders/material/wave_floor.vert",
"fragmentSource": "betterend:shaders/material/glow_green_2.frag",
"disableAo": true,
"disableDiffuse": true
}
]
}

View file

@ -0,0 +1,12 @@
{
"parent": "block/cube",
"textures": {
"down": "betterend:block/amaranita_hyphae_top",
"east": "betterend:block/amaranita_hyphae_side",
"north": "betterend:block/amaranita_hyphae_side",
"particle": "betterend:block/amaranita_hyphae_side",
"south": "betterend:block/amaranita_hyphae_side",
"up": "betterend:block/amaranita_hyphae_top",
"west": "betterend:block/amaranita_hyphae_side"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cross",
"textures": {
"cross": "betterend:block/clawfern"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_inverted",
"textures": {
"cross": "betterend:block/clawfern"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cross",
"textures": {
"cross": "betterend:block/globulagus"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/crop_block",
"textures": {
"texture": "betterend:block/globulagus"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_inverted",
"textures": {
"cross": "betterend:block/globulagus"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/crop_block_inverted",
"textures": {
"texture": "betterend:block/globulagus"
}
}

View file

@ -0,0 +1,3 @@
{
"parent": "betterend:block/amaranita_hyphae"
}

View file

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "betterend:block/clawfern"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "betterend:block/globulagus"
}
}

View file

@ -0,0 +1,8 @@
#include frex:shaders/api/fragment.glsl
#include frex:shaders/lib/math.glsl
void frx_startFragment(inout frx_FragmentData fragData) {
float a = abs(fragData.spriteColor.b - fragData.spriteColor.r);
float b = abs(fragData.spriteColor.b - fragData.spriteColor.g);
fragData.emissivity = (a > 0.1 && b > 0.1 && fragData.spriteColor.b > 0.1) ? 0.5 : 0;
}

View file

@ -0,0 +1,8 @@
#include frex:shaders/api/fragment.glsl
#include frex:shaders/lib/math.glsl
void frx_startFragment(inout frx_FragmentData fragData) {
float a = abs(fragData.spriteColor.g - fragData.spriteColor.r);
float b = abs(fragData.spriteColor.g - fragData.spriteColor.b);
fragData.emissivity = (fragData.spriteColor.g > 0.3) ? 0.3 : 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B