• June 19, 2021, 11:37:59 PM

Login with username, password and session length

 


internal combustionanother PDOFpkdof-66
another PDOF
Previous Image | Next Image
Description: CPU ----------------------------

widget.addInt32("Iterations",&control.isteps,1,25,1)
widget.addFloat("box Size",&control.cx,0,2,0.01)           // box size ranges from 0 ... 2,  with 0.01 delta per keypress
widget.addFloat("size",&control.cy,0,2,0.01)
widget.addFloat("Offset",&control.cz,-1,1,0.02)
widget.addFloat("DE Offset",&control.cw,0,0.01,0.0001)

GPU ----------------------------

float DE_PDOF(float3 pos,thread Control &control,thread float4 &orbitTrap) {
    float DEfactor = 1;
    float3 ap;
   
    for(int i=0; i < control.isteps; ++i) {
        ap = pos;
        pos = 2 * clamp(pos, -control.cx, control.cx) - pos;
       
        float r2=dot(pos,pos);
        orbitTrap = min(orbitTrap, abs(float4(pos,r2)));
       
        float k = max(control.cy/r2, 1.0);
        pos *= k;
        DEfactor *= k;
       
        pos += control.julia;
        orbitTrap = min(orbitTrap, abs(float4(pos,dot(pos,pos))));
    }
   
    return abs(0.5 * abs(pos.z - control.cz)/DEfactor - control.cw);
}

Stats:
Views: 68
Total Favorities: 0 View Who Favorited
Filesize: 3.52MB
Height: 1157 Width: 2400
Keywords: stereo 
Posted by: kosalos January 29, 2021, 09:09:22 PM

Rating: **** by 1 members.
Total Likes: 1

Image Linking Codes
BB Code
BB Thumbnail Image Code
BB Medium Image Code
0 Members and 1 Guest are viewing this picture.

Comments (0)


Return to Gallery


Powered by SMF Gallery Pro