portaali fresnel
This commit is contained in:
@ -6,7 +6,7 @@ PROJECT_INFO_FILE=prod.nfo
|
|||||||
PROJECT_SCREENSHOT=
|
PROJECT_SCREENSHOT=
|
||||||
|
|
||||||
# Currently active config file name
|
# Currently active config file name
|
||||||
ACTIVE_CONFIG=minified.config
|
ACTIVE_CONFIG=base.config
|
||||||
|
|
||||||
# ------- GUI options/preferences --------
|
# ------- GUI options/preferences --------
|
||||||
# Automatically rebuild DLLs when things have changed?
|
# Automatically rebuild DLLs when things have changed?
|
||||||
|
|||||||
@ -63,7 +63,7 @@ CRINKLER_ORDERTRIES=4000
|
|||||||
|
|
||||||
AUDIO_BUFFER_ALLOCATED_LENGTH=2830240
|
AUDIO_BUFFER_ALLOCATED_LENGTH=2830240
|
||||||
AUDIO_SAMPLING_RATE=44100
|
AUDIO_SAMPLING_RATE=44100
|
||||||
LOOP_END=5.0
|
LOOP_END=28.0
|
||||||
LOOP_START=3.0
|
LOOP_START=24.0
|
||||||
LOOP_ENABLED=0
|
LOOP_ENABLED=1
|
||||||
TIME_DIVIDER_INT=91241
|
TIME_DIVIDER_INT=91241
|
||||||
|
|||||||
@ -21,3 +21,5 @@ TWO_PASS_RENDERING=0
|
|||||||
SECOND_PASS_NEGATIVE_TIME=0
|
SECOND_PASS_NEGATIVE_TIME=0
|
||||||
USE_TEXTS=0
|
USE_TEXTS=0
|
||||||
USE_TEXTS_UNIFORM=0
|
USE_TEXTS_UNIFORM=0
|
||||||
|
RESOLUTION_X=1270
|
||||||
|
RESOLUTION_Y=768
|
||||||
|
|||||||
@ -406,7 +406,10 @@ vec3 sceneGate(vec2 uv)
|
|||||||
if(mat==0.)
|
if(mat==0.)
|
||||||
col *= vec3(0.21, 0.35, 0.33) + addSpecular(n,rd,.5, 2.);
|
col *= vec3(0.21, 0.35, 0.33) + addSpecular(n,rd,.5, 2.);
|
||||||
if(mat==1.)
|
if(mat==1.)
|
||||||
col = getSeaColor(p, n, no(vec3(0.0,0.3,0.8)),no(rd));
|
{
|
||||||
|
float fresnel = pow(clamp(1.-dot(n, -rd), 0., 1.), 0.6);
|
||||||
|
col = getSeaColor(p, n, no(vec3(0.0,0.3,0.8)),no(rd)) - vec3(1., 1.0 ,1.) * fresnel;
|
||||||
|
}
|
||||||
if(mat==2.)
|
if(mat==2.)
|
||||||
col *= vec3(.8, .8, .5);
|
col *= vec3(.8, .8, .5);
|
||||||
if(mat==3.)
|
if(mat==3.)
|
||||||
@ -414,7 +417,7 @@ vec3 sceneGate(vec2 uv)
|
|||||||
if(mat==4.)
|
if(mat==4.)
|
||||||
col *= vec3(0.0, 0.08, 0.11) + addSpecular(n,rd,0.3,0.7);
|
col *= vec3(0.0, 0.08, 0.11) + addSpecular(n,rd,0.3,0.7);
|
||||||
if(mat ==5.)
|
if(mat ==5.)
|
||||||
col = chevronColor*0.4;// * pow(cl(1. -dot(n, -rd), 0., 1.), .3);
|
col = chevronColor*0.4 * pow(cl(1. -dot(n, -rd), 0., 1.), .3);
|
||||||
if(mat == 6.)
|
if(mat == 6.)
|
||||||
col *= vec3(0.01, 0.04, 0.06) + addSpecular(n,rd,.1, 2.5);
|
col *= vec3(0.01, 0.04, 0.06) + addSpecular(n,rd,.1, 2.5);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user