X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fsky.h;fp=shaders%2Fsky.h;h=01bc5c2fbce9d26ae0d5ae0a5dfd490c0f5fa106;hb=3bb0287d544a4cb75de9afe2927ac8e946f3a18e;hp=653173ec8d4d617d59b549527daa8a78ea64c9c3;hpb=cb16ccb05a796178c879ea8d5091663d215a5217;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/sky.h b/shaders/sky.h index 653173e..01bc5c2 100644 --- a/shaders/sky.h +++ b/shaders/sky.h @@ -51,13 +51,13 @@ static struct vg_shader _shader_sky = { "void main()\n" "{\n" " float fintensity = 1.0-(abs(aNorm.y)*0.7);\n" -" float fblend = pow(fintensity,6.0);\n" -" vec3 horizon = vec3( 0.61, 0.71, 0.86 )*1.5;\n" -" vec3 skycolour = vec3( 0.31, 0.56, 0.91 );\n" +" float fblend = pow(fintensity,8.0);\n" +" vec3 horizon = vec3( 0.8, 0.9, 0.9 );\n" +" vec3 skycolour = vec3( 0.5, 0.6, 0.9 );\n" " vec3 diffuse = mix( skycolour, horizon, fblend );\n" "\n" " float fmove = uTime * 0.004;\n" -" vec2 cloudplane = (aCo.xz / (aCo.y*sign(aNorm.y))) * 0.03;\n" +" vec2 cloudplane = (aNorm.xz / (aNorm.y*sign(aNorm.y))) * 0.05;\n" " vec4 clouds1 = texture( uTexGarbage, cloudplane + vec2(0.1,0.4)*fmove*2.0 );\n" " vec4 clouds2 = texture( uTexGarbage, cloudplane + vec2(0.3,0.1)*fmove );\n" "\n" @@ -67,10 +67,8 @@ static struct vg_shader _shader_sky = { " vec3 colour_ocean = vec3( 0.61, 0.84, 0.9 );\n" " float fhorizon = step( aNorm.y * 0.5 + 0.5, 0.5 );\n" "\n" -" vec3 skycomp = mix(diffuse, vec3(1.0,1.0,1.0), cloud_e);\n" -" skycomp = mix(mix(pow(colour_ocean,vec3(6.0))*0.6,skycomp, 0.7),skycomp,fhorizon);\n" -"\n" -" FragColor = vec4(skycomp, 0.0);\n" +" vec3 skycomp = mix(diffuse, vec3(1.0,1.0,1.0), cloud_e*(1.0-fblend*3.0));\n" +" FragColor = vec4(skycomp,1.0);\n" "}\n" ""}, };