bWFuanVzYWth / OriginShader

A shader for MCPE
284 stars 132 forks source link

sudjestion #33

Open gorabat opened 3 years ago

gorabat commented 3 years ago

please reduce the brightness, the eye pain can be dazzling

Aricsprague commented 2 years ago

if you go into the user folder and open the set document you can change it to be a bit better.

add this line of code before the #endif and after #elif light_style == 3

also, make sure you change light style to 4 at the top of the file

elif __LIGHT_STYLE == 4

define SUNCOL vec3(1.0000, 1.0000, 1.0000)

define SUNLIGHT_A 12.0

define MOOCOL vec3(1.0000, 1.0000, 1.0000)

define MOOLIGHT_A 0.5

define POICOL vec3(1.0000, 0.8500, 0.5000)

define POILIGHT_A 10.5

define ENVCOL vec3(1.0000, 1.0000, 1.0000)

define ENVLIGHT_A 0.028

define LATITUDE 0.2618

define SUN_R 0.009512

define SOFTSHADOW 3.0

define TONEMAP 2

define LUM 1.0

define FOG_A 18.0

define O3 (0.007 vec3(3.426, 8.298, 0.356) 0.06)

define LR (0.003 * vec3(0.580, 1.350, 3.310))

define LM (0.015 * vec3(2.000, 2.000, 2.000))

define USE_WATER_TEXTURE 0

define WATER_TYPE 2

define MILKY_WAY_LIGHT 0.10

define MILKY_WAY_DEC_X 0.65

define MILKY_WAY_DEC_Y 0.65

define MILKY_WAY_DEC_Z 0.65

define STAR_LIGHT 12.0

define PM_AIR vec3(0.10, 0.80, 0.10)

define G_AIR vec3(-0.15, 0.75, 0.99)

define PM_FOG vec3(0.10, 0.80, 0.10)

define G_FOG vec3(-0.15, 0.75, 0.15)

define RO (LR + O3)

define HR 8.0

define HM 1.2

define EARTH_R 6371.0

define EARTH_r (EARTH_R - 0.5)

define SUN_RISE_Y (-0.15)

define EARTH_SHADOW 1

attached are a few screenshots of how it looks. if you want it naturally darker change environment light around 0.01-0.02

Screenshot_20211201-013952_Minecraft Screenshot_20211128-234201_Minecraft . Screenshot_20211118-131934_Minecraft