mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-19 23:57:22 +08:00
add iris's BLOCK_TRANSLUCENT programs
This commit is contained in:
parent
339829f952
commit
ce8c674893
@ -15,6 +15,10 @@ varying vec4 color;
|
||||
flat varying vec4 lightCol;
|
||||
#endif
|
||||
|
||||
#ifdef BLOCKENTITIES
|
||||
#undef WATER_REFLECTIONS
|
||||
#endif
|
||||
|
||||
#ifdef ENTITIES
|
||||
#undef WATER_BACKGROUND_SPECULAR
|
||||
#undef SCREENSPACE_REFLECTIONS
|
||||
@ -474,8 +478,6 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
|
||||
up *= pow( max( WS_normal.y, 0), 2);
|
||||
down *= pow( max(-WS_normal.y, 0), 2);
|
||||
AmbientLightColor += up + down;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef END_SHADER
|
||||
|
@ -104,7 +104,7 @@ void main() {
|
||||
if (mc_Entity.x == 10002) mat = 0.2;
|
||||
if (mc_Entity.x == 72) mat = 0.5;
|
||||
|
||||
#ifdef ENTITIES
|
||||
#if defined ENTITIES || defined BLOCKENTITIES
|
||||
mat = 0.1;
|
||||
#endif
|
||||
|
||||
|
@ -34,10 +34,12 @@ program.composite4.enabled = TAA_UPSCALING
|
||||
#Get the correct alpha value : S_A*(1-DST_A)+DST_A
|
||||
|
||||
program.gbuffers_entities_translucent.enabled = IS_IRIS
|
||||
program.gbuffers_block_translucent.enabled = IS_IRIS
|
||||
|
||||
#ifdef IS_IRIS
|
||||
separateEntityDraws=true
|
||||
blend.gbuffers_entities_translucent = off
|
||||
blend.gbuffers_block_translucent = SRC_ALPHA ONE_MINUS_SRC_ALPHA ONE_MINUS_DST_ALPHA ONE
|
||||
#endif
|
||||
|
||||
blend.gbuffers_water = SRC_ALPHA ONE_MINUS_SRC_ALPHA ONE_MINUS_DST_ALPHA ONE
|
||||
|
6
shaders/world-1/gbuffers_block_translucent.fsh
Normal file
6
shaders/world-1/gbuffers_block_translucent.fsh
Normal file
@ -0,0 +1,6 @@
|
||||
#version 120
|
||||
|
||||
#define BLOCKENTITIES
|
||||
#define NETHER_SHADER
|
||||
|
||||
#include "/dimensions/all_translucent.fsh"
|
6
shaders/world-1/gbuffers_block_translucent.vsh
Normal file
6
shaders/world-1/gbuffers_block_translucent.vsh
Normal file
@ -0,0 +1,6 @@
|
||||
#version 120
|
||||
|
||||
#define BLOCKENTITIES
|
||||
#define NETHER_SHADER
|
||||
|
||||
#include "/dimensions/all_translucent.vsh"
|
6
shaders/world0/gbuffers_block_translucent.fsh
Normal file
6
shaders/world0/gbuffers_block_translucent.fsh
Normal file
@ -0,0 +1,6 @@
|
||||
#version 120
|
||||
|
||||
#define BLOCKENTITIES
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/all_translucent.fsh"
|
6
shaders/world0/gbuffers_block_translucent.vsh
Normal file
6
shaders/world0/gbuffers_block_translucent.vsh
Normal file
@ -0,0 +1,6 @@
|
||||
#version 120
|
||||
|
||||
#define BLOCKENTITIES
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/all_translucent.vsh"
|
6
shaders/world1/gbuffers_block_translucent.fsh
Normal file
6
shaders/world1/gbuffers_block_translucent.fsh
Normal file
@ -0,0 +1,6 @@
|
||||
#version 120
|
||||
|
||||
#define BLOCKENTITIES
|
||||
#define END_SHADER
|
||||
|
||||
#include "/dimensions/all_translucent.fsh"
|
6
shaders/world1/gbuffers_block_translucent.vsh
Normal file
6
shaders/world1/gbuffers_block_translucent.vsh
Normal file
@ -0,0 +1,6 @@
|
||||
#version 120
|
||||
|
||||
#define BLOCKENTITIES
|
||||
#define END_SHADER
|
||||
|
||||
#include "/dimensions/all_translucent.vsh"
|
Loading…
x
Reference in New Issue
Block a user