Comments (3)
I see what you mean. No where to render the 2D. It works with the suggestions. Thanks, cool product.
from shader-park-examples.
I just checked the es6-starter template, and the code does work, so it seems to be the threejs example that is failing in this case.
Perhaps something to do with enable2D?
from shader-park-examples.
Hi,
Yes I do think it has to do with enable2D. I'm not actually sure yet what the ideal behavior should even be when using a 2D shader on a threejs mesh.
For this particular shader, I can recommend replacing
let p = enable2D()
with
let p = getSpace()
And then adding some primitive at the end like sphere(1)
or box(1,1,1)
.
You could then also replace vec3(p.x, p.y, 0)
with just p
.
You can also try adding setMaxIterations(1)
for something that will cover your whole mesh.
from shader-park-examples.
Related Issues (12)
- Add example for es6-starter-interactive-template
- CodeSandbox using react-three-fiber with shader-park HOT 1
- Example for using with p5.js?
- Add example for es6-starter-interactive-template
- add example for es6-three-template
- Add example for es6-starter-three-interactive-template
- Add example for react
- Add example for react-three-fiber / drei
- Add example for interactive hicetnunc NFT
- Add example for Svelte / SvelteKit HOT 1
- example showing animation control with theaterjs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shader-park-examples.