Ocean node material

I thought about using parallax with ocean shader and most likely parallax can’t improve quality of water, because we need to use dynamically changed surface and i don`t think that uses of one gif is enough. Maybe i try to do anything later :slightly_smiling_face:

Got that!)

@simon hey, that’s amazing work!
I note, this material does not working with the fog. To fix it, as I know we can add these nodes:

But I still have a question. How to change flat shading into smooth?
Maybe @Deltakosh or @Evgeni_Popov could point for me?

I’m not sure what you call flat shading? It seems quite smooth to me.

I mean Shade Smooth from Blender:
image

On large scale it’s not smooth:

I see, maybe @simon will know what to do about it.

Do you think that it’s relative to this shader only? I thought it neccessary to add some “smooth normals” node, or smth like this =)

Yes, this is relative to the shader. In a node material shader, everything is done in the shader, there’s no “external” shader code (the normal for each pixel is computed in the shader).

Hi Dok11! Thank you)

This is topic about flat shaded normals

4 Likes

@simon I know this is an old post but I just want to express my appreciation on how minimal the code is in your playground. It’s very easy to look over and play around with. great job!

1 Like