Coder Social home page Coder Social logo

shader-park-examples's People

Contributors

eilseq avatar luckyde avatar pwhiddy avatar torinmb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

shader-park-examples's Issues

Example for using with p5.js?

Amazing project and the blend() of CSG is sooo nice!

I was trying to figure out how to integrate this with p5.js, searched and found an 'old' (from 2023) example here. However that's using v0.1.41, when using the latest v0.2.6, it returns the error createShaderPark is not defined, so I guess the API changed. Using the older version worked, however I'm sure docs have changed in the meantime. Thanks in advance for a tiny example of how one can do that similarsp = createShaderPark(()=>{) and sp.draw() if that's also still a thing. Would be amazing if that model could also accept p5.js' texture() or fill()/stroke() styling...!

Shader Park code from explore page does not work in any of the templates

If I copy the shaderpark code below (one of the examples from your main web page) into the spcode.js of the threejs example template, it does not work. It displays a blank blue polygon.

// from https://shaderpark.com/sculpture/-N-9T668AijcoYygOP4L
function fbm(p) {
return vec3(
fractalNoise(p),
fractalNoise(p + 200),
0
)
}

let timer = time0.05
let p = enable2D()
p = 0.5
vec3(p.x, p.y, 0) + 5 * (timer / 10)
let composition = fbm( p + fbm( p + fbm( p )) ) *0.5+0.5
color( composition )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.