Fractal Lab shaders in GLSL Hacker?

Started by bentleyousley, December 31, 2014, 08:32:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bentleyousley

Has anyone gotten the shaders created by Fractal Lab to work in GLSL Hacker?  I would really appreciate any pointers that might help me get this working. Thanks!

There are three exposed components that are used in Fractal Lab:

1)  vertex


attribute vec3 vertexPosition;

void main()
{
    gl_Position = vec4(vertexPosition, 1.0);
}


2) Fragment (DropBox link):

https://www.dropbox.com/s/c1f9kqvdw1w1o95/FractalLabFragment.txt?dl=0


3) Parameters that are passed through the js interface:

{"scale":-2.81, "power":8, "surfaceDetail":0.66, "surfaceSmoothness":0.79, "boundingRadius":114.02, "offset":[0,0,0], "shift":[0,0,0], "cameraRoll":0, "cameraPitch":-5, "cameraYaw":-13, "cameraFocalLength":0.1, "cameraPosition":[0.024451,-0.008109,-1.715169], "colorIterations":3, "color1":[0.0315625,0.0315625,0.0315625], "color1Intensity":0.96, "color2":[0.7490196078431373,0.7176470588235294,0.5843137254901961], "color2Intensity":1.26, "color3":[1,1,1], "color3Intensity":0.51, "transparent":false, "gamma":0.99, "light":[48,191,-198], "ambientColor":[0.41,0], "background1Color":[0.7450980392156863,0.9450980392156862,0.9372549019607843], "background2Color":[0,0,0], "innerGlowColor":[0,0.6,0.8], "innerGlowIntensity":0.13, "outerGlowColor":[1,1,1], "outerGlowIntensity":0, "fog":1, "fogFalloff":1.7, "specularity":2.12, "specularExponent":16.5, "size":[922,897], "outputSize":[922,897], "aoIntensity":0.66, "aoSpread":2.6, "objectRotation":[1,0,0,0,1,0,0,0,1], "fractalRotation1":[1,0,0,0,1,0,0,0,1], "fractalRotation2":[1,0,0,0,1,0,0,0,1], "depthMap":false, "sphereHoles":4, "sphereScale":1, "phi":1.618, "boxScale":0.5, "boxFold":1, "fudgeFactor":0, "juliaFactor":0, "radiolariaFactor":0, "radiolaria":0, "dE":"Mandelbox", "maxIterations":12, "stepLimit":105, "aoIterations":3, "antialiasing":false, "_objectRotation":[0,0,0], "_fractalRotation1":[0,0,0], "_fractalRotation2":[0,0,0], "stepSpeed":0.39}


Any help is much appreciated!