Rotating sky immeubles
This commit is contained in:
parent
19664c384f
commit
c5fb7d9c50
1 changed files with 3 additions and 3 deletions
|
@ -80,10 +80,10 @@ vec3 grad(vec3 p){
|
|||
|
||||
vec3 Get_Color(vec3 origin,vec3 dir){
|
||||
vec4 impact = Get_Impact(origin,dir);
|
||||
if(impact.w<0.) return vec3(.5,.8,.9)+.5*dir.y+.05*clamp(origin.y-10.,-10.,10.);
|
||||
if(impact.w<0.) return vec3(.9,.5,.2)+.5*(dir.x*sin(Time)+dir.y*cos(Time))+.05*clamp(origin.y-10.,-10.,10.); //(.5,.8,.9)
|
||||
vec3 normale=grad(impact.xyz);
|
||||
vec3 sunPos=vec3(3.,3.5,.5);//vec3(3.*sin(Time*1.5),3.*cos(Time*3.),3.*cos(Time*1.5));
|
||||
return vec3(clamp(0.,1.,dot(sunPos-impact.xyz,normale)));//normale;
|
||||
vec3 sunPos=vec3(sin(Time),cos(Time),0);//vec3(3.*sin(Time*1.5),3.*cos(Time*3.),3.*cos(Time*1.5));
|
||||
return vec3(clamp(0.,1.,dot(sunPos,normale)));//normale; ---impact.xyz
|
||||
}
|
||||
|
||||
float Mandel(vec2 co){
|
||||
|
|
Loading…
Reference in a new issue