I've been playing around with the threejs library and creating a basic scene with a bathtub and skybox. You can find my original code (without any shaderimplementation) at; https://liuloppan.github.io/watershader/
Now I want to make a shader for my water using GLSL, but I'm struggling to make it work just linking the vertex- and fragmentshader into a program. Right now I just want a standard blue shader using GLSL, I've looked at the ShaderMaterial function, RawShaderMaterial, and also WebGL tutorials trying to make it work. I have 3 different questions at this point.
With the ShaderMaterial and RawShaderMaterial examples, I noticed that most of the code examples use the ../build/three.js, but I use the minified three.min.js, how much of a difference does it make?
I followed this tutorial; https://aerotwist.com/tutorials/an-introduction-to-shaders-part-1/ I get an error "could not initialise shader" VALIDATE_STATUS false gl error. How to fix this?
Do you know of any alternative up to date examples of shader-implementation with threejs? Most examples I find seem to use some or multiple deprecated methods so that I can't run the examples myself.
WaterShader.jsmodule.