Particles & shader fixes

This commit is contained in:
paulevsGitch 2021-03-01 01:21:38 +03:00
parent 4aec8487fa
commit ed286099ee
5 changed files with 9 additions and 4 deletions

View file

@ -3,6 +3,7 @@ package ru.betterend.world.biome;
import net.minecraft.entity.EntityType; import net.minecraft.entity.EntityType;
import ru.betterend.registry.EndBlocks; import ru.betterend.registry.EndBlocks;
import ru.betterend.registry.EndFeatures; import ru.betterend.registry.EndFeatures;
import ru.betterend.registry.EndParticles;
import ru.betterend.registry.EndSounds; import ru.betterend.registry.EndSounds;
public class DragonGraveyardsBiome extends EndBiome { public class DragonGraveyardsBiome extends EndBiome {
@ -10,7 +11,8 @@ public class DragonGraveyardsBiome extends EndBiome {
super(new BiomeDefinition("dragon_graveyards") super(new BiomeDefinition("dragon_graveyards")
.setGenChance(0.1F) .setGenChance(0.1F)
.setFogColor(244, 46, 79) .setFogColor(244, 46, 79)
.setFogDensity(1.1F) .setFogDensity(1.3F)
.setParticles(EndParticles.FIREFLY, 0.0007F)
.setMusic(EndSounds.MUSIC_OPENSPACE) .setMusic(EndSounds.MUSIC_OPENSPACE)
.setLoop(EndSounds.AMBIENT_GLOWING_GRASSLANDS) .setLoop(EndSounds.AMBIENT_GLOWING_GRASSLANDS)
.setSurface(EndBlocks.SANGNUM) .setSurface(EndBlocks.SANGNUM)

View file

@ -9,8 +9,8 @@ import net.minecraft.util.math.Direction;
import net.minecraft.world.StructureWorldAccess; import net.minecraft.world.StructureWorldAccess;
import net.minecraft.world.gen.chunk.ChunkGenerator; import net.minecraft.world.gen.chunk.ChunkGenerator;
import net.minecraft.world.gen.feature.DefaultFeatureConfig; import net.minecraft.world.gen.feature.DefaultFeatureConfig;
import ru.betterend.blocks.BlockProperties.TripleShape;
import ru.betterend.blocks.BlockProperties; import ru.betterend.blocks.BlockProperties;
import ru.betterend.blocks.BlockProperties.TripleShape;
import ru.betterend.registry.EndBlocks; import ru.betterend.registry.EndBlocks;
import ru.betterend.registry.EndTags; import ru.betterend.registry.EndTags;
import ru.betterend.util.BlocksHelper; import ru.betterend.util.BlocksHelper;

View file

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

View file

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

View file

@ -4,5 +4,5 @@
void frx_startFragment(inout frx_FragmentData fragData) { void frx_startFragment(inout frx_FragmentData fragData) {
float a = abs(fragData.spriteColor.g - fragData.spriteColor.r); float a = abs(fragData.spriteColor.g - fragData.spriteColor.r);
float b = abs(fragData.spriteColor.g - fragData.spriteColor.b); float b = abs(fragData.spriteColor.g - fragData.spriteColor.b);
fragData.emissivity = (fragData.spriteColor.g > 0.3) ? 0.3 : 0; fragData.emissivity = (fragData.spriteColor.g > 0.3) ? 0.6 : 0;
} }