Hi Alfonso,

A small example to calculate a 6 point star image.

`const float4 constant_pool:register(c0); // constants received from CPU`

#define iResolution constant_pool.xyz // viewport resolution in pixels (width, heigth, aspect ratio)

static float star_size = 1.0/3.0;

float4 ps_main(float2 fragCoord:vpos):color // ps_3_0 input semantics, vpos contains the current pixel (x,y) location. This is only valid with ps_3_0.

{

float3 color = 0.0;

fragCoord = abs(fragCoord + fragCoord - (color.rg = iResolution.xy)) / color.g;

color += 1.0 - 2.0*pow(( pow(2.0*fragCoord.x, star_size) + pow(fragCoord.x + fragCoord.y*1.7, star_size) + pow(abs(fragCoord.x - fragCoord.y*1.7), star_size))*0.333333, 1.0/star_size) - color;

return float4(color,1.0);

}