Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by me_unity550 · Apr 09, 2020 at 07:35 PM · shadernoise

Remove RGB channel from water shader to show whats underneath.

I followed this awesome tutorial on creating a Toon Water Shader, though I'm using it in a top-down 2d setting. In the screenshot below you can see the result is blue water with rippling waves from the noise generation. However, even with the alpha on the PBR Master turned low, the blue "Base color" is coloring everything beneath the water blue. I'm hoping to find a way to remove the blue and just have the white ripples over a transparent background so that the "underwater" tiles can remain their true color.

Skipping the multiply/add steps kind of works but the effect is really lost without the "Ripple color" being added, it just looks like cells.

alt text

screen-shot-2020-04-08-at-53518-pm.png (412.9 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JxWolfe · Apr 09, 2020 at 08:00 PM 0
Share

I'm not a shader guy, however, have you thought about getting something on the asset store?

https://assetstore.unity.com/packages/tools/particles-effects/lowpoly-water-107563 https://assetstore.unity.com/packages/vfx/shaders/nvjob-water-shader-simple-and-fast-149916 https://assetstore.unity.com/packages/vfx/shaders/water-effect-fits-for-lowpoly-style-87810

the lowpoly water effect looks similar to what you are looking for, however one looks more realistic, whereas the last one looks more subtle and wouldn't be good in a water adventure, but would do fine in a pond or something.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by ShamusO · Apr 09, 2020 at 10:21 PM

Hey, so I come from making art assets meshes, textures, and materials. From the image, you provided it seems like if you want a more realistic result you would need more specific values for the PBR Master. Rather than having integers for smoothness (which gives uniform reflection across the surface) and occlusion (which defines which areas are self shaded) start by plugging the result of power into those as a starting point (they both take greyscale images (you may need to invert them)). You can also try and generate a normal map from the results of the power node as well (this would define the surface pattern/texture its a way of adding detail to meshes without adding more geometry, not sure if there is a "normalize" node or not). I am not sure what the metallic value would be for water from what I remember if it's not genuinely a metal metallic should always be 0 as you have it. Also, you would need to generate the inputs from your current setup as it's animated so you couldn't, for example, use a static image.


So yeah, in conclusion, I would recommend just defining the surface qualities more. You may not need anything in albedo (which is the base color of the material). Also while I have made textures and material and understand some there are definitely people more knowledgeable in this area than I am. I would also recommend reading up on PBR textures/materials in general. Unfortunately, I think different 3D applications implement it differently, which can be confusing. Just learn how unity defines different values. Hope this helps!


PS: you could go really advanced and try to implement things like caustics but that would be overkill and it probably would require a lot of work /rework on the material you already have.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ShamusO · Apr 10, 2020 at 08:21 PM 0
Share

Did this help at all? Have I answered your question effectively?

avatar image
0

Answer by Namey5 · Apr 10, 2020 at 11:23 PM

This could potentially be to do with the blending mode used on the material, although seeing as we can't see that I will just say you should set it to Fade if it isn't already (Blend SrcAlpha OneMinusSrcAlpha). If you want just the waves to be opaque, you can plug the result of the 'Power' node directly into the alpha output.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

193 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why does fmod(x,1.0) not work in Unity4, but fmod(x,1.0001) does? 0 Answers

Need some shader code translating to ShaderLab. Random float generation. 0 Answers

Simple Voronoi Code not working 1 Answer

3D Mesh Deformer in Unity3D 2 Answers

3D Texture and normals 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges