Hi
I would like to improve the WaterShader.
I would like to combine the GlassShader with the Waterplane (reflective).
Can anybody tell me how and where I can learn how to create Shaders. (So that you get a Pro in this topics )
By
Hi
I would like to improve the WaterShader.
I would like to combine the GlassShader with the Waterplane (reflective).
Can anybody tell me how and where I can learn how to create Shaders. (So that you get a Pro in this topics )
By
Hi
I hope someone of Otee can solve this problem.
I have tryed to combine the Shader of the Glass and of the reflective WaterPlane.
I want that you can see through the watersurface but not clear and that you have a little (very thin) reflection of the environment.
I attached the Shader.
I hope someone can help me with this.
By
Hi
I have have improved the shader a bit.
It works good now but only the realtimereflection doesn’t work.
(it is to bright - means you see it to good and it is not head down).
I hope someone from you guys of OTEE can help me there.
Here is the new version of the shader now.
By
I will provide a reflective&refractive (is this what you want) water shader in a couple of days.
Your approach is slightly wrong: by stiching together two subshaders, you won’t get both running (only the first subshader that works on user’s machine will used) . You either need to do two passes, or do everything in one pass.
Thanks
I will buy a book about Shader Language OpenGL (So that I get a pro in this )
Thanks for your help
By
Is GLSL supported, and if so, is it recommended?
Hi
I bought the book now and it is used in unity shaders.
It helps you to understand shaders and programm professional shaders.
By
what’s the book?
On the topic of books, I guess The Cg Tutorial is really good for starting Cg, I just ordered a copy.
Bill
Not at the moment. Right now ShaderLab uses Cg 1.4, which does not support GLSL profiles.
Ok, here’s my take at reflective and refractive water. The package is self contained (does not need standard/pro assets). Just drag the Water prefab or assign the material to your own water.
It does reflection and refraction with planar render textures (so it obviously requires Unity Pro), with a Fresnel interpolation between them. Tweak either the Fresnel texture or the shader itself to change the fresnel effect.
It’s not completely polished though - it doesn’t nicely fallback on old video cards, etc. etc. But it should be a good start, and I tried to comment the shader/scripts pretty well.
OOoooh looking pretty sweet.
Darn you for tempting us with pro features.
Now, the pro version must have another extra features since indie is making the things that pro versions do.
Say what now?
Aras just said it doesn’t require any pro specific assets (images, etc.) but it does require pro for the reflections as it uses render to texture. So this wont work fully in indie.
HTH,
-Jeremy
Hi
This is now the ready water shader.
Like in Gothic.
When someone can add a little environment reflection than he should do this and put it back here.
By
I can’t get this to work
Pro only
Only because of the Render to Textures, and I’m not using them.
The shader only works on pretty good video cards (the ones that support fragment shaders, geforce FX/6/7 and radeons 9500 and up should do). Yeah, it does not fallback to anything more simpler properly, so just renders everything in black!