mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-23 01:59:39 +08:00
fix and light brokeyness
This commit is contained in:
parent
61adeb5e81
commit
b3b01541bd
@ -263,8 +263,8 @@ void main() {
|
|||||||
float torchlightmap = lmtexcoord.z;
|
float torchlightmap = lmtexcoord.z;
|
||||||
|
|
||||||
#ifdef Hand_Held_lights
|
#ifdef Hand_Held_lights
|
||||||
// if(HELD_ITEM_BRIGHTNESS > 0.0) torchlightmap = mix(torchlightmap, HELD_ITEM_BRIGHTNESS, clamp( max(1.0-length(fragpos)/10,0.0) * 0.7 ,0.0,1.0));
|
if(HELD_ITEM_BRIGHTNESS > 0.0) torchlightmap = mix(torchlightmap, HELD_ITEM_BRIGHTNESS, clamp( max(1.0-length(fragpos)/10,0.0) * 0.7 ,0.0,1.0));
|
||||||
if(HELD_ITEM_BRIGHTNESS > 0.0) torchlightmap = clamp(torchlightmap + HELD_ITEM_BRIGHTNESS * clamp( max(1.0-length(fragpos)/10,0.0) * 0.7 ,0.0,1.0),0.0,1.0);
|
// if(HELD_ITEM_BRIGHTNESS > 0.0) torchlightmap = clamp(torchlightmap + HELD_ITEM_BRIGHTNESS * clamp( max(1.0-length(fragpos)/10,0.0) * 0.7 ,0.0,1.0),0.0,1.0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
float lightmap = clamp( (lmtexcoord.w-0.8) * 10.0,0.,1.);
|
float lightmap = clamp( (lmtexcoord.w-0.8) * 10.0,0.,1.);
|
||||||
|
Loading…
Reference in New Issue
Block a user