Comments (6)
Would be quite hard to make something similar to that
from newb-x-mcbe.
Is this possible?
from newb-x-mcbe.
This is a good suggestion, but I'm not sure how the result will turn out to be. Two ways I think this could be implemented are:
Approach 1 (Realistic):
- Use worldPos and cPos to somehow get tiledWorldPos.
- Create a 3D tiled noise pattern (add linear waves to get motion)
- Add fog fade to 3d noise
- Raymarch volumetrics
- Mix with actual fog
Approach 2 (Just fake it):
- Make some good looking noise pattern
- Add it to fog
Approach 1 isn't really suited for this shader, but it's possible.
from newb-x-mcbe.
I think you add it and add a config line to toggle between the two approach and turn it on and off
from newb-x-mcbe.
does Approach 1 is possible to do in vertex shader?
i know noise
is possible but how about for()
function?
from newb-x-mcbe.
Approach 1 is possible to do in vertex shader?
Yes, its possible. But it will look a little weird when you move because of interpolation. As example, look at the cloud/aurora reflection on water in this shader.
how about for() function?
Yes you can use any control statement in vertex shader. See GLES 2.0 Reference card to understand GLSL more.
from newb-x-mcbe.
Related Issues (7)
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 newb-x-mcbe.