quaddamage

Turtles all the way down

Aug 27th, 2016
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "Progressive2DJulia.frag"
  2. #include "Complex.frag"
  3.  
  4. // An example of Escape Time Fractals,
  5. // using progressive rendering.
  6. // Bbuffers are set up by the 'Progressive2DJulia' fragment.
  7. //
  8. // Remember to set 'Render mode' to 'Continous'.
  9. // Progressive rendering, makes very high-quality AA possible.
  10.  
  11. //  Fractal by Kali: http://www.fractalforums.com/new-theories-and-research/very-simple-formula-for-fractal-patterns/msg31800/#msg31800
  12.  
  13. uniform float MinRadius; slider[0,0,10]
  14. uniform float Scaling; slider[-5,0,5]
  15.  
  16. vec2 formula(vec2 z,vec2 c) {
  17.     float m =dot(z,z);
  18.     if (m<MinRadius) {
  19.         z = abs(z)/(MinRadius*MinRadius);
  20.     }else {
  21.         z = abs(z)/m*Scaling;
  22.     }
  23.     return z+c;
  24. }
  25.  
  26. #preset Default
  27. Center = -0.0,0.0
  28. Zoom = 5
  29. Gamma = 2.5463
  30. ToneMapping = 3
  31. Exposure = 1.3044
  32. Brightness = 1
  33. Contrast = 1.0396
  34. Saturation = 1.8817
  35. AARange = 1
  36. AAExp = 1
  37. GaussianAA = false
  38. Iterations = 1000
  39. PreIterations = 15
  40. R = 1
  41. G = 0.84034
  42. B = 0.525
  43. C = 0.90756
  44. Julia = true
  45. JuliaX = 1.43649
  46. JuliaY = 2.05404
  47. ShowMap = false
  48. MapZoom = 2.1
  49. EscapeSize = 5
  50. ColoringType = 0
  51. ColorFactor = 0.5
  52. MinRadius = 0
  53. Scaling = -1.9231
  54. #endpreset
Advertisement
Add Comment
Please, Sign In to add comment