|
Hello all, I'm looking for a shader that gives me the looks of a GEO application like arcgis or global mapper. Shader should colour a mesh based on the y-position of the vertices. Unfortunately I have minimal experience with programming. Does anyone know where i can find this kind of shader or how to make it ? Preferably it should also be able to show the wireframe of the mesh at the same time and take into account vertex tangents like common GEO hill shaders do (steep is darker). Kind regards, Frans
(comments are locked)
|
|
You could try this one. It shows 4 different colors based on the world position of the vertexes plus a water level color which all can be adjusted in the inspector or by script (colors and height level). The normals are used to calculate the slope or hill shading (steeper is darker) which can be faded with the last input value. A wireframe mode is not (yet) implemented. Use Material.SetColor and Material.SetFloat to change the input values by script.
And yes, it is my first shader :-)
(comments are locked)
|
|
Hi efge, Exactly what I was looking for. Very good for a first shader. Ethernal thanks Frans
(comments are locked)
|

