Using ShaderGraph to make objects appear larger in Unity

Using ShaderGraph to make objects appear larger in Unity

If you want the objects in Unity to appear larger, you can do so through ShaderGraph. ShaderGraph is a visual shader editor for Unity that allows you to create and edit shaders graphically without writing code.


0b8c28bdbe7fc1b4fe3f7d6b0f9579ce.jpeg

To make the object display larger, you can use a "Multiply" node in ShaderGraph. This node multiplies the input color by the set value, making the color lighter or darker.

Here's how to do it:

  1. Open Unity and create a new ShaderGraph material.
  2. In the Graph view, right-click and select "Create Node".
  3. Select Math > Multiply from the menu.
  4. Connect the output of "Multiply" to the "Color" input of the "Master Node".
  5. Enter a number into the Multiply's Value input to control the object's magnification.
  6. Set the object's material to the newly created ShaderGraph material.

Your object should now appear as a multiple of the size you set.

23742ba46a206278a789a0a3f9a6bfb6.jpeg


Guess you like

Origin blog.csdn.net/shguxudong11/article/details/129491565