Pages

duminică, 17 martie 2024

Shader Editor - example 005.

... another shader for Shader Editor:
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

uniform vec2 resolution;
uniform float time;
uniform vec4 mouse;
uniform vec4 date;

//#define time  iTime
#define R resolution.xy
void mainImage( out vec4 fragC, in vec2 fC)
{
   vec2 pos = (fC.xy/R.xy) * 8. - 4.;
    pos.x *= R.x / R.y;
    float s = .26, f = 10.0, k = f;
    vec3 p = vec3(pos, sin(time ) * .15)* s;

    for( int i=0; i< 5; i++ )
    {
           p = (abs(p)/dot(p,p) - 1.33);
           k = length(p);
        
           p = 0.95*s/(p*k-p)*k;
   }
   f = (dot(dot(p,p),0.9*s)/(s/dot(p,p)));
   fragC= vec4(f, f *1.2, f * 9.1, 1.0);;
}

void main() {
vec4 fragment_color;
mainImage(fragment_color, gl_FragCoord.xy);
gl_FragColor = fragment_color;
}

News : Asana - online tool.

Asana is a platform that helps you connect work and workflows to company-wide goals, with AI, integrations, and security features.

vineri, 15 martie 2024

News : Another two videos from Unity 3D game engine.

... next Live in 2 days March 18 at 8:00 PM ...

News : ASA Cross-Platform Mods Spotlight, Mar 11 - Mar 15, 2024 ...

Spotlighting some of the exciting new Cross-Platform Mods added from Mar 11 - Mar 15 for ARK: Survival Ascended on PlayStation 5, Xbox Series X|S, and Steam!

News : Titan Quest 2 - Announcement Trailer

News : Selfloss - Announcement Trailer ...