Comments (3)
Hi!
Colours are set up in files with fragment shaders (with the *.frag
extension) in the src/Ocean/data/
directory:
- https://github.com/Postrediori/OceanSimulation/blob/master/src/Ocean/data/ocean110.frag
- https://github.com/Postrediori/OceanSimulation/blob/master/src/Ocean/data/ocean130.frag
- https://github.com/Postrediori/OceanSimulation/blob/master/src/Ocean/data/ocean330.frag
The values for fog, sky and water are set up here as RGBA values between 0.0 and 1.0:
const vec4 fog_color = vec4(0.25, 0.75, 0.65, 1.0);
const vec4 emissive_color = vec4(1.0, 1.0, 1.0, 1.0);
const vec4 ambient_color = vec4(0.0, 0.65, 0.75, 1.0);
const vec4 diffuse_color = vec4(0.5, 0.65, 0.75, 1.0);
const vec4 specular_color = vec4(1.0, 0.25, 0.0, 1.0);
These are almost identical files for different OpenGL versions. If not sure what version to use, modify all three.
from oceansimulation.
I'm sorry to bit a year late, but in case you find this useful, there are now color changing controls in branch adjust_colors:
from oceansimulation.
Added color UI in #9
from oceansimulation.
Related Issues (3)
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 oceansimulation.