Pages

marți, 1 noiembrie 2022

Shader Editor - example 002.

This post is just one simple example, you can find many tutorials if you search on web for my work ...
If you don't have enough time to test my last shader source code then you can test now with another source code to have a beautiful blue effect.
Let's see the source code for this shader:
#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 = (fragCoord.xy/R.xy) * 8. - 4.;
   vec2 pos = (fC.xy/R.xy) * 8. - 4.;
    pos.x *= R.x / R.y;
    float s = .25, f = .0, k = f;
    vec3 p = vec3(pos, sin(time * .4) * .5 - .5)* s;

    for( int i=0; i< 9; i++ )
    {
           p = abs(p)/dot(p,p)- 1.5;
           k = length(p) ;
           p = p*k+k;
   }

   f = dot(p,p)* s;
   fragC= vec4(f*.5, f *1.2, f * 5., 0.111);;
}

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

duminică, 30 octombrie 2022

News : Blender 3.4.0 Alpha version.

Today, October 30 Blender release the experimental version 3.4.0 at 02:17:58 history d1d2f002c7ca size of zip 299.98MB.
You can download it from the official website.
Blender 3D software development has been constantly improved in recent years and a day later its founder Ton Roosendaal gave a speech about this software ...

sâmbătă, 29 octombrie 2022

News : The World's first Game Engine for YouTube and social media.

Named Stornaway.io this is : The best and easiest-to-use interactive video software for websites, social media and apps
Price starts from $10 per month - paid annually.
This works with a a browser extension from here.
You can see a video presentation from the official youtube channel.

News : The YAHAHA for game creators.

Using Yahaha Studio creators with little or no coding experience can create the games that they imagine: YAHAHA has lowered the barrier to 3D games creation with this supremely easy new creator tool modeled on all the principles of the Unity development environment.It could be a gateway to a new life as a creator in the Metaverse.
You can find more on the official website and you can see how this works in this next video ...

Shader Editor - example 001.

You can test your skills in shader theory with this excellent android application named Shader Editor.
The application can be found on google play.
After installation, you can use the eye icon to toggle between the source code and the output and the three dots icon to load, load samples, and save ...
If you want to rename it after creating a new shader or save it as a new shader, just click on the icon with three lines and double-click on the shader's name.
This is a shader created for my cardboard virtual reality and set for my eye anatomy ...
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

uniform vec2 resolution;
uniform vec2 cameraAddent;
uniform mat2 cameraOrientation;
uniform samplerExternalOES cameraBack;

void main(void) {
vec2 uv = gl_FragCoord.xy / resolution.xy;
vec2 st = cameraAddent + uv* cameraOrientation * vec2(tan(0.805),cos(0.31));
gl_FragColor= vec4(
texture2D(cameraBack, st*vec2(2.0,1.0)).rgb,0.1);
}

News : Godot comes with new videos ...

After 11 months Godot's youtube channel comes with three new videos about this 3D game engine.
This is one of them ...