Relative Content

Tag Archive for unity-game-engineshader

Sprite billboarding that dosen’t change the rotation?

I have a 2.5d style game where I want 2d assets to always look at the player. I’ve looked into other sprite billboards, but all of them have one big flaw: they change the gameobjects rotation instead of just rendering it as 2d (is it even possible to billboard without rotating the object?).

I want to add the Unity 2D Dissovle effect, but I’m having trouble

I’m trying to apply the Dissolve effect with the Unity Shader settings, but I’m not getting it applied on the last Combine side, and because of that I can’t see it being applied in the scene.
I’ve searched both Google and YouTube, but I don’t know the exact error and I’m not sure what to look for, so I’m asking this question. And importantly, you’re working in 2D

How to change the property value of the material in the cginc?

I’m using the cginc file that performs plane clipping in shader. I’m looking for a way to add one property to the material using this shader, and then change the value of this property in the cginc file. However, I change the property within cginc, it doesn’t seem to be reflected in the material.

Specular term seems wrong in Unity

I’m new in writing Unity Shaders.
I create a capsule and give it a simple texture, using a pixel-level Blinn-Phong lightning model to write a shader. But the result seems wrong: