#Not able to render water shaders?

1 messages · Page 1 of 1 (latest)

cinder scaffold
#

Hello everyone,
I'm on my third attempt at getting a water shader to work on a plane. It's always pink but I don't understand why. Currently setup trying this asset but I'm open to any approach that is simple/good performance. I'm assuming my camera is lacking some setting but I don't know what. Any ideas where to look?

First photo is plane:

#

Here is material :

#

Shader :

#

Camera :

young pewter
#

Look at the errors first.

young pewter
cinder scaffold
#

@young pewter : I removed my bootstrap scene...that wasn't suppose to be in there and it removed all errors. My mistake.

  1. Does the material rendering properly in the preview indicate the asset works? I'm happy to try another but this is my third shader I've tried...do you have a suggestion?

  2. I'm not entirely sure what that means. I just reviewed my packages installed and it is only URP as far I can tell. Do I need to check elsewhere?

#

Check this out...

young pewter
#
  1. It might. I'd check the active targets property in the shader graph to make sure it's targeting the actually active render pipeline.
  2. Hmm... Make sure you don't have any packages in the assets folder as well. But perhaps the issue is more related to 1.
cinder scaffold
#

It comes down every now and then

#

Ok...so it looks like I got the shader working right...it's small and in place now....but the pink remains. So I'm thinking the shader needs me to set the base color of the plane myself :

young pewter
#

Pink means incompatible or broken shader.

#

Since there are no compile errors in the shader graph, it's likely the rp compatability issue. Which is why I suggested checking the target rp in the graph.

cinder scaffold
#

I'm not sure how to do that. I posted a screen shot of the shader graph above. Is it in there somewhere?

#

I got the demo scene working, and then got my scene working by using the prefab:

#

I'm not really clear why that is needed. Maybe something to do with the mesh, using a plane might not be suitable.

young pewter
cinder scaffold
#

I can't get this asset to work properly at all. Is there not just a standard common way people handle water? I tried the Unity URL Demo Enviroment and I couldn't get that one to transfer into my project either. Very frustrating...has been a waste of a day

young pewter
#

Well, assets should work if they're compatible with the render pipeline and unity versions.
Hdrp has a built-in water feature. In urp it seems to be on the road map.

young pewter
#

There's the unity "boat attack" sample for urp with water.
Might want to check it out.
It seems like they have branches with 6.2 compatability on github.