[SOLVED] Changing color for water shader

i’m trying to make this water crystal blue, how would I do that?
enter link description here

You have water.js file that defines custom shader. You would need to modify that shader to add color values to resulting fragment shader color output.


i’m a beginner can you explain to me how I can modify the shader can’t seem to get it.

Here is tutorial that explains how to work with shaders: http://developer.playcanvas.com/en/tutorials/advanced/custom-shaders/
You’ll have to google and learn GLSL, try experimenting and playing with it, bit by bit, changing some values a bit, and seeing how it works - will give you overall idea of what it does, then you’ll be able to change/add what you need.


I finally did it, thanks for your help.

1 Like