Julio Cesar

Julio Cesar

@juliocesar-dev.bsky.social

Solo game developer My games: https://store.steampowered.com/dev/jcpgamesstudio #GameDev #IndieGame

276 followers31 following92 posts

Solving a level in my game! World of Contraptions is a physics-based building game where you construct a variety of machines to solve all sorts of puzzles. World of Contraptions is on Steam! #gamedev #indiegame

View full thread

As an extra, if you want to control the rotation of the pattern, add a "Rotate" node connecting with the "UV" input of the "Polar Coordinates". Then just add a property to control the "Rotation" of the "Rotate".

View full thread

Add two Steps, connect the Fraction to the Edge of the first one and also to the In of the second one. Add a property and connect it to the In of the first and to the Edge of the second, but before connecting to the Edge make it go through a One Minus. Finally add the two Steps.

Now just subtract the circle with the stripe pattern and you will have a dashed circular pattern. Connect this output to Base Color and Alpha of Fragment, if you want, before connecting to Base Color multiply it by a color property to be able to control the color of the pattern.

View full thread

The first step is to add two ellipse and subtract the first with the second, in the first leave the dimensions at (1, 1) and in the second add a property to the dimensions to control the thickness of the circle.

Now let's create a circular striped pattern, add a polar coordinates node and add a property to control the "Length Scale" input, this property will control the number of dashes. Add a "Split" take the "G" channel and connect it to a "Fraction" node.

Create a new material and change its shader to "Shader Graphs/Decal" and then click on "Edit..." next to it. In the shader windows click "Save as..." to save as a new shader. Once this is done, delete all the elements marked in red as shown in the image, we won't need them.