The easy way is to check the incrementing the eax register: The problem is much more complex if we are to discuss the subject. Let’s see the source code:
xor EAX, EAX
The x64 and x86 are symbols. The source code shows us the algorithm: recall correctly the EAX with xor ; try to … Continue Reading Programming with FASM – test 64 bit CPU compatibility.
This tutorial is about how to start with an Empty project , use packages , add a class and finish the project. First you need to start with an Empty Project from the main menu : File – New – Project . Select the Windows Desktop – Empty Project add… Continue Reading C# – First steps with C# and .NET – part 004 .
This tutorial shows you how to deal with a C# and forms using Visual Studio Community 2017. You need to start your project with C# – Windows Form Apps (.NET Framework). On this default form window project, you can change the title and some settings like size, colors. After that,… Continue Reading C# – First steps with C# and .NET – part 003 .
Today I will show you how to convert a GLSL source code to Shadertoy source code. This tutorial will help you better understand the elements involved in shaders and the display interface. Let’s see what the source code written in GLSL looks like:
// A simple, if a little square, water caustic effect.
// David Hoskins.
// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
// Inspired by akohdr's "Fluid Fields"
precision mediump float;
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 resolution;
#define f length(fract(q*=m*=.6+.1*d++)-.5)
float d = 0.;
vec3 q = vec3(gl_FragCoord.xy / resolution.yy-13., time*.2);
// Yes, I realise this mat3 looks a little gay in a homo way ... :)teehee
mat3 m = mat3(-2,-1,2, 3,-2,1, -1,1,3);
vec3 col = vec3(pow(min(min(f,f),f), 7.)*40.);
gl_FragColor = vec4(clamp(col + vec3(0., 0.35, 0.5), 0.0, 1.0), 1.0);
To convert it into the source… Continue Reading Shadertoy – conversion of a GLSL example.
In this tutorial, I will deal with some examples. The goal of this tutorial is to understand how shadertoy works and what are the requirements to be able to work properly with this tool. You need an account then start with the New button to create a new shadertoy workspace.… Continue Reading Shadertoy – examples and circle .
The Shadertoy website is a great tool to test your skill in writing shaders. This is my first try with this tool. See the source code I write to make a notepad paper example:
#define PI 3.14159265359
void mainImage( out vec4 fragColor, in vec2 fragCoord )
vec2 uv = (fragCoord.xy) / iResolution.xy;
fragColor = vec4(col,1.0);
Use the fullscreen option to see correctly the result of this shader.