GithubHelp home page GithubHelp logo

Comments (3)

Postrediori avatar Postrediori commented on July 4, 2024

Hi!
Colours are set up in files with fragment shaders (with the *.frag extension) in the src/Ocean/data/ directory:

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.

Postrediori avatar Postrediori commented on July 4, 2024

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.

Postrediori avatar Postrediori commented on July 4, 2024

Added color UI in #9

from oceansimulation.

Related Issues (3)

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.