How to make transparent water at unity shader? - unity3d

I have mesh and want to make water effect on it and see inside of water. I am new unity shader so I dont know how can I do in Unity shader ?

If you want to create your own shader but with minimal effort and a graphical user interface, you can look into Unity Shader Graph. There are plenty of tutorials available online.
If you want to write your own shader from scratch, it may be best to look for YouTube tutorials or Unity Documentation on writing shaders

Related

How to outline (silhouette) 3D model in URP?

Good weekend everyone, I'm looking for some tutorial/script how to make 3D object outline with original image texture (eg. stick with wood texture). I would like to when the raycast hits the object (I'm able to detect with object is raycast hitted), the object will be outlined/glowed.
I tryed many tutorials on youtube, finding shaders script, etc, but I'm using URP Unity 2020 and some shaders is not working - only pink material, or works different. Emitter material is not good too, because there is no original texture. I'm stuck on this for few days. I'm a newbie in the Unity community.
Thank you very much for your help. :)
Outline shaders are difficult to make. I use this free asset I found in the Unity Asset store for all my games if you are looking for an easy fix.
https://assetstore.unity.com/packages/tools/particles-effects/quick-outline-115488

How can simple, low poly stylistic fog lighting be achieved in Unity 3D?

I am a 3D Illustrator, and I'm looking to create an interactable VR world of my low poly scene.
How would I achieve lighting similar to this in Unity?
I have found this on the Unity store. Any help would be appreciated!
Also known as volumetric lighting =)
You can find countless assets for achieving this, a lot of which are free and of high quality.
The asset you linked is very expensive and if it is what you want to go for then great, but the price is set according to the amount of low poly 3D environments, textures, shaders, prefabs, demo scenes etc... not for the lighting.
If you only need volumetric lighting I recommend this free and great asset that will get you set instantly :
Volumetric Lighting Asset
It has great documentation but you can always follow this tutorial if you want a little extra visual help to get started :
YouTube Tutorial
Otherwise feel free to browse the asset store!

How to write a custom shader in Unity 3D that lights up a specific pixel or group of pixel?

I'm making a FPS game in Unity, and I want the environment to light up as the player is shooting on his environment.
So say I have a tree. First it would be entirely black or greyish, but if I shoot somewhere, I would see some green.
To accomplish this feature, I'm using a raycast to have the impact point and so I can access any renderer of the point that the player is shooting on.
I guess the next step would be to write a custom shader to light the exact pixel that is shot.
Do you have any idea how I could write this shader or another way of doing this effect?
Regards
If you are using deferred rendering: Deferred decals.
If you are using forward rendering: Projectors.
If you need some more advanced "paint-like" functionality, use render textures coupled with RaycastHit.textureCoord to get the exact UV coordinate at your ray intersection point. You can draw stuff to render textures using Graphics.Blit. Check out this github project for some inspiration on how to do this.

Unity3d; Skybox on mesh like in Source engine.

In older games Ive made levels in, like unreal or half-life the skybox is a parallaxed texture that you assign to world geometry, for instance, the ceiling of your room, to give the illusion of the room being open to the sky.
There are some neat tricks or weird things you can achieve with this 'sky portal' method. For example you could have 'sky' in an underground room. or walk through a hole in the sky.
I'm wondering is it possible to make a mesh in unity3d render as part of the skybox like in these older engines.
You can do this yes. Usually you assign a "SkyBox" to your camera and change the "Clear Flags" for her "SkyBox". However, there are other ways to do.
Learn more here: http://docs.unity3d.com/Documentation/Components/class-Skybox.html
Hope this help !

How to draw images on Terrain in unity

I am working on game in unity in which i need some images to be placed on terrain as in the attached image yellow arrows and "P in blue circle" are rendered on surface in unity.
Any idea or method will be appreciated.
There's no built-in support for decals in Unity. You could just create separate gameObjects with transparent texture and place them above the terrain here, or use one of several packages for decals in Unity Asset Store, like this one. (I have only briefly tried it and can't say anything about it's quality).
I know it's an old topic - but for those who are still not satisfied:
I would recommend using Easy Decal.
It's a very powerful decal projector. It's easy to use and you can stick decals also on uneven surfaces like bumpy terrains.
You could try putting a plane with the texture aligned with the surface normal slightly above the surface. Or you could try an extension that does decals for you. This is what i found:
Decal System for Unity3D
As previously mentioned Easy decal is a good choice. It's easy to use, has extensive fuctionalities and you'll get a lot for your money. But if you need skinned decals there's no way around Decal System Pro by Edelweiss interactive. It's more expensive, but beside the skinned mesh support it also supports texture atlases which saves you draw calls.