XaiJu
pucklovesgames

pucklovesgames

patreon


pucklovesgames posts

Update about No Updates.

It's been quite a few months now with little to no updates. I'm sorry about that.

It's a combination of things, none of them individually overwhelming but all of them adding up to my inability to create new content.

I started this patreon as a way to help me fund and create my own game, with the idea being that I would share the assets from the game as I made them. But other commitments have shifted me away from self directed game development. Mostly I've taken on more contract wo...

View Post

Soft Area Lights - FILES

A small and simple little tweak to custom lighting on a shader. It ignores the normals near to the light source to create a soft bleed-through effect, like a directionless subsurface scattering. 

There's also a slightly hue shift towards the edges of the light radius to create a more interesting palette.

2022-02-08 02:11:32 +0000 UTC View Post

Interactive Waterfall - FILES

Here's an easy way to make an interactive waterfall, by rendering particles to a render texture via an orthographic projection that's aligned with the waterfall surface. These particles define the negative space part of the waterfall - the gaps created by the objects blocking the water.

It uses very basic collision with the waterfall volume, emitting particles at the centre of each collider. It also adjusts the particle size based on the collider size, which works well ...

View Post

DrawMeshInstancedIndirect - FILES

PSA: I'm not super familiar with any of this, so there might be incorrect assumptions and mistakes, if so, sorry, I'll correct them as I learn more!

I've been playing around with DrawMeshInstancedIndirect, which is like the souped-up version of DrawMeshInstance, in that it's not limited to 1023 instances per draw. It's a bit more complex and confusing, but I think it's worth the effort to get working, there's a lot you can do with a whole lot of instancing.


Using it r...

View Post

SDF Shader - Cutaway effect - FILES

Here's a little script and some shader functions that let you write out an object's transformation matrix and then read it as a Signed Distance Field (SDF) in a shader.

I've included 3 SDFs, a basic sphere, a rounded box with adjustable roundness, and a capsule. They can be freely moved, rotated and scaled.

I'm so thankful to the SDF examples by Inigo Quilez here:

http...

View Post

Quads to Billboards - FILES (Free)

I stumbled upon this really clever shader trick from Pontus Karlsson, where he pushes the verts of a quad mesh into camera facing billboards. You can watch the video of it here.

The benefit of it is that each 'billboard splat' retains the original normal, so you get proper volumetric lighting information without any extra work. You ...

View Post

Atmospheric Scattering Fog + Blur Masking - FILES

Here's a maskable blur effect that you can use in a variety of ways. It's done the same way the blur on the refractive rain shader (from here https://www.patreon.com/posts/rain-shader-with-32056295), by using a Command Buffer to grab the screen every frame, blur it, and then write it out as a global texture that can then be sampled in our shaders.

All the important components for this effec...

View Post

Environment Interaction Updated - FILES

This is pretty much the same as the previous Environment Interaction asset, now cleaned up, a bit easier to use, and updated with a few extra things that I've added in since I made the original.

The main visible addition is the grass swaying on the ground trail. The trail now wobbles between and outward push and an inward pull over time, which gives recently disturbed grass a swaying motion as you move through it.

The main 'cleaned up' part is the render texture is handle...

View Post

Interactive Ground Fog - FILES

I was recently reminded about the cool ground fog in Mario Odyssey by this tweet https://twitter.com/Patrickd3/status/1351245697845239809

I'd always wanted to give it a try, and then I realised I had the fx setup done already from the original Environment Interaction post, and more recently the Fog of War render texture post. So here's the Fog of War, without the Of War.

Just like the...

View Post

Fog of War via Render Texture - FILES

Repurposing the Environmental Interaction render texture camera to create a Fog of War effect.

The G channel is "full fog" (unexplored areas), and the R channel is "semi fog" (explored, but currently unobserved areas). You can mark areas as covered by the fog using the special Fog of War Quads that exist in the FogObjects layer.

The terrain shader samples from this to become desaturated and hidden in the fog areas, and the enemy shader samples from this to do a dissolve f...

View Post

Blood Steam using a particle ribbon - FILES

The in-built Particle Ribbons are pretty limited to create this effect, and a few workarounds have to be done to get it functional, but it works well enough for a quick one-off. To take it further I'd want to generate my own mesh, to allow the ribbon to split into multiple ribbons when the points are too far apart, to interpolate the line, and to have more control over the UV layout and keep a consistent mapping.

View Post

Magic Sword Particles - FILES

A simple way to make particles spawn on a weapon and leave a trail behind, plus a few fun particle shader variations for magic weapons - because sharp steel isn't deadly enough, it has to do elemental damage as well.

We want the weapon to leave a trail of particles behind when it's moved. But since you'd normally put the pivot point of a weapon at the handle, to make it line up easier for grab attachment, you won't be able to use the Rate Over Distance emission to spawn particles when t...

View Post

Bubble Popping - FILES (free)

Here's a fun little bubble popping shader that works on particles. Good for mud, lava, or other bubble forming liquids.

The bubble popping part is all done with opacity clip and vertex offset - I've made a quick toon-lite version as an example, but you can create your own colour variations depending on the bubble material you're after (or let me know what you'd like and I'll make it up for you - tis but the work of a moment).

I've used a sub emitting particle system for the 'poppi...

View Post

Render Texture Feedback - FILES

Ever since seeing the cool explosions in Remedy's Control, when you pop the "Hiss" off a possessed enemy, I've been wanting to play with adding more feedback build-up into my shaders.

Here is the my initial playing around with implementing a basic feedback loop that I put together a while ago, but never got around to completing. It's very bare bones, simply a second "feedback camera" that is rendering anything on the feedback layer to a literal quad in front of the main camera, which is...

View Post

Mesh Lights - WRITE UP

I wanted to go over some of the basics of how the mesh lights are put together, and some additions and fixes I've stumbled upon recently.

The above gif is from some lighting tests I'm doing for a project I'm working on that's going to probably be implementing these mesh lights. You can see a few more gifs in this thread https://twitter.com/Ed_dV/status/1321332232879943681

One of the thin...

View Post

The next few months of Patreon: Shaders to Swords.

Hello!

The type of content I’ll be producing for patreon will likely change over the next few months, from almost entirely (100%) shaders and effects, to other game assets, such as 3d models, textures and perhaps some animations too. Still with a focus on non-photorealistic and stylised aesthetics. I’d like to start creating more assets for my own personal game project which is based in a fantasy setting, so expect weapons, trees, castles and monsters View Post

Fake Lights 2. Cube Volume Projection - FILES

I thought it would be a good idea to explore a few more simple variations of the mesh lights from the previous post. These ones don't use N.L light direction, so they're more like volume projection than a different way to do lighting. I've put them all on a rounded cube volume for these examples, but you can just swap that out for spherical volume if you'd prefer (let me know if you have any problems with this).

There's a Directional Ambient light version, that lets you...

View Post

Mesh Lights with Texture Projection - FILES

I've added some basic texture projection into the fake mesh light shader. It can now project a cubemap texture or 2d texture spherically around it. The 2d mapping will need tweaking if you need it to visually match the emitter sphere, depending on how you've uv mapped that.


I've also included a version of the shader that acts as a directional projector. Unlike the standard Unity proj...

View Post

Fake Billboard Lights - FILES

I've been wanting to make this one for a while - instead of using point lights, this shader fakes it with a billboard quad and calculates all the lighting manually using the Normals and Depth information in the _CameraDepthNormalsTexture render texture. You'll need to make sure your camera is rendering this DepthNormals texture if it's not already. There's a script included to force it.

Some of the benefits of this is what you can have a thousand lights shining in forwa...

View Post

Toon Lighting Basics

I thought it would be a good idea to write up some of the basics of Toon Lighting for anybody that isn't familiar with it. There are heaps of ways to approach this, depending on your rendering pipeline and the style you're going for, this is just one simple way that I enjoy playing with.

The examples below are made in Amplify Shader Editor View Post

Important info about changes and expectations.

Hello everybody! You might have noticed that I've been absent for the last 2 months and paused the patreon in that time. I'm sorry I haven't been as active as I'd like to be with new content and help on the discord.

I've had a bunch of non work related things on my plate, but I'm hoping that is mostly behind me now and I can start focusing on shaders and art and game development again. Thanks for sticking around, and I hope I can continue to create things that you find interesting and u...

View Post

Smudgy Pixelization Post Process - FILES

I'm back after a short break in which I focused on health and family and all things that aren't shaders. So I'm easing back into it with a smudgy depth-based pixelization shader I've been wanting to make for a while.

It blends between 3 levels of pixelization so objects closer to you are more 'in focus' and objects further away get to stay as chunky pixels. I've also added in a smudge factor and some noise options to the mapping, because pixels aren't sacred and it's okay to smear them ...

View Post

Patreon Pausing

Hello everyone.

Things have gotten a bit busy at the moment, and I haven't been able to spend the time I've wanted to on working on Patreon posts recently, so I'm putting a pause on payments for the next billing cycle.

What this means is you won't get charged on August 1st, but I still intend to update the Patreon with some shader and game asset goodies during the month if I can. 

If you can stick around until things pick up, I really appreciate it, but...

View Post

Sphere Billboards (FAKE Spheres on quads) - FILES

Here's a way to fake the rendering of a lit sphere on a quad. Currently all the sphere calculations are done using Maths (generating world normals and spherical depth from the quad UVs), but I'd like to do some tests to see if it might be more performant to bake the normals and depth and use a texture sample instead.

Pros:

* Perfectly round spheres at any scale.
* Have hundreds or thousands of them as particles, they're just quads.
* The triplanar mapped v...

View Post

Blurry Blob Variations (forward + deferred) - FILES

Here are a few variations on the blobby polygon compositing shader I've been playing with. In the original version of this effect, I blurred the normals and then injected that back into the render stack, which only works in deferred rendering.

In these versions I'm instead writing out the blurred pass to a render texture, setting that as a global texture, and then using that directly in the particle shaders. This means they now work in both forward and deferred View Post

Blobby Polygonal Clouds and Liquid - FILES

Here is a way to make blobby liquids and smoke from simple geometry (sphere in this case) by messing with the gbuffer (blurring the normals) and then compositing it back to the main camera with a depth comparison.

This is a big one for me, with a bunch of different areas all coming together. It's important to know that it's just a starting point, I feel like there's so much potential in this area that I'll be playing and uncovering things here for a while. I'm very exc...

View Post

Simple Radial Chart Shader - FILES (Free)

I made a bare-bones radial (pie?) chart shader, for a mana collection mechanic I'm working on - but then I realised I prefer using vanilla 'resource bars' instead. Hopefully somebody can get some use out of it.

It's using a length from UVs to get a perfect circle for the amounts, but if you swapped it over an alpha step and had an interesting gradient you could get some cool effects as the slice fills up?

View Post

UI Events To Shader - FILES (Free)

A very simple example of how you can adjust shader properties via UI events via script.

I might expand this more in the future to add a better colour picker (with colour set by code), use Material Property Blocks instead for performance, and other bells and whistles. Let me know if there's anything you could use and I'll add it in there.

View Post

Toon Eye - FILES

Here's a simple Toon Eye shader with some nifty eye related features. The pupil and iris centre is pushed back via parallax, and the specular reflection is a static matcap, so it always glints in the same place. This is not at all realistic, but gives a more controllable toony effect.

I've split the input textures up into separate Pupil, Iris, and Specular textures to make it easier to swap stuff out, but these can absolutely all be squeezed into one single RGBA texture if you want.

...

View Post

'Black Ice' Triplanar Terrain - FILES

I've been working on tweaking the terrain shader for Black Ice (a cool Tron-like FPS looter/shooter that I've been privileged to be able to contribute a few assets to) - adding some visual features and giving the level designers more controls to fine tune the look of certain areas in the game.

Garrett Cooper, the creator/de...

View Post