Alex Kam

Recreating Breath of the Wild's Stasis Rune

Published on 11/29/2026

As a way to learn technical art techniques and get more comfortable in creating visually appealing games in Godot, I wanted to try my hand and recreating some famous game mechanics. I’m quite green in the ears when it comes to technical art and anything graphics, so I wanted to start small.

This time, we’re recreating a mechanic in a game that inspired me to become a game developer in the first place: Breath of the Wild (BotW). In BotW, the player plays as Link, who gains access to the Sheikah Slate, an ancient tablet from a forgotten civilisation. The Sheikah Slate contains runes, abilities that allow Link to manipulate the world in various ways. One such rune is the stasis rune, which allows Link to freeze objects in time. While the object is frozen, it absorbs and stores any source of kinetic energy. Once the object becomes unfrozen, the stored kinetic energy is applied all at once, allowing the player to launch heavy objects across great distances.

This project is heavily inspired by Mix and Jam’s Recreating Breath of the Wild’s Stasis Rune Youtube video. Many of the techniques used are the same, but I implemented this in Godot, not Unity.

The Setup


Before actually implementing the fun visual stuff, I have to setup the menial logic stuff. I won’t get into the details of this because it’s really boring. For now, I need the following:

All third-party assets and code used are referenced at the bottom of this blog post!

Whew, that took a while! Now let’s get started.

The Stasis Logic


As the player enters ‘stasis aiming’ mode, the object that appears in the middle of their screen could appear targetable. If selected, it would be ‘stasis-ed’ and become kinematic (ignores external forces). Any collision on it would build up internally until the stasis timer ends and all force is released at once.

Aiming

Godot makes this simple with their RayCast3D node! By simply projecting a ray from the camera’s origin, we can easily find objects where the user is looking at. If you want to make the aiming more lenient, just add more rays! Or use a ShapeCast3D. The world is your oyster.

Aiming Raycast

Collision Point

I skimmed over this in the setup, but geting the collision point was a bit tricky. Initially, I used Godot’s Area3D to detect if the sword was colliding with the boulder, but it doesn’t return the collision point. To get this information, I needed to turn the sword to a ShapeCast3D! This made the sword like a giant raycast.

Sword Shapecast

Launch Force

Finally the fun part. By tracking all of the hits on the boulder based on their collision points, we can launch the boulder the moment the stasis ends!

func _on_hit(hit: Hit) -> void:
	if state != State.Stasis:
		return

	var direction := global_position - hit.origin_point
	stasis_vector += hit.magnitude * direction

func _apply_stasis_vector() -> void:
	rigidbody.apply_impulse(stasis_vector)

There is a small bug in this code at this point in time, as the boulder doesn’t launch in the last direction where it was hit (as it is in BotW), but we’ll fix it later!

The Stasis Effect


Fresnel Effect

When stasis mode is entered, any stasis-able objects should be highlighted. However, this highlight effect only appears at the outer edges of the object. This can be achieved through the Fresnel Effect. This describes how the amount of light reflected from a surface changes depending on your viewing angle.

When combined, this creates a highlight around the edges of the object as the viewing angle around the edges becomes shallower, allowing more light to be reflected. The effect below was achieved with an outer white fresnel with high power and an inner yellow-ish fresnel with low power.

Fresnel Effect

There are plenty of fresnel equations, I used the code Unity provides for its fresnel effect node in its Shader Graph. Adapted to a gdshader, it is as folllows:

float saturate(float value) {
	return clamp(value, 0.0, 1.0);
}

float fresnel(vec3 normal, vec3 view, float power) {
	return. pow((1.0 - saturage(dot(normalize(normal, normalize(view)))), power);
}

void fragment() {
	vec3 base_color = vec3(0.0);
	float fresnel_amount = fresnel(NORMAL, VIEW, power);
	return base_color * fresnel_amount;
}

Pulse Effect

As the object is being stasis-ed, it plays a pulsing effect that expands outwards. This happens periodically. I achieved this by sampling noise at two points, applying a step function to discard noise after the value, and subtracing the two values. This subtraction creates a band which moves with time.

vec3 get_noise_color(float x, vec2 uv) {
  float noise = texture(noise_texture, uv).r;

  // Sample noise at normal time stamp
  float pulse = fract(x);
  float stepped_noise = step(pulse, noise);

  // Sample noise at delayed time stamp
  float pulse_delayed = fract(x) - 0.1;
  float stepped_noise_delayed = step(pulse_delayed, noise);

  // Subtract sampled noise and mix with stasis colour
  float final_noise = stepped_noise_delayed - stepped_noise;
  vec3 noise_color = mix(noise_start_color, noise_end_color, stasis_weight);
  return noise_color * final_noise * noise_emission;
}

void fragment() {
  vec3 target_color;
  ...
  EMISSION = target_color + get_noise_color(TIME, UV);
}

Finally, the stasis-ed object has a blink effect. As the stasis timer goes lower and lower, the blink occurs more and more frequently. I decided to set this blinking effect as a boolean shader parameter and handle it on the scripting side, where the time logic is also handled.

Particle Effects

When the stasis effect actually happens, there are a number of things that happen:

I experimented with Godot 3D particle trails that were introduced in 4.0. It’s probably a skill issue, but I found them incredibly unintuitive to use and inflexible in supporting custom materials and textures. Hence, I went the manual route of creating the chain model myself in Blender.

Chain Model

I implemented the particles with Godot’s GPUParticles3D node. It’s not as intuitive as Unity’s Particle System, but it got the job done after a lot of tinkering. I then created a @tool script to let me debug the chain effect and polished it until I was happy with the result. I highly recommend making use of Godot’s @tool feature and testing things in the Editor! Super fast iteration cycles for the win.

Finally, when the stasis effect ends, the following happens:

I drew the chain texture using Krita and got to work!

Arrow Effect

Finally, BotW shows an arrow indicator to show where the object will go. The arrow scales in correlation to how much force is applied, and there is a nice spring-y animation when the arrow changes in size. Sounds easy! First things first, gotta make the arrow model in Blender.

Chain Model

Then, to ensure that it always shows above all objects, we disable depth testing.

shader_type spatial;
render_mode depth_test_disabled;

uniform vec3 base_color : source_color = vec3(1.0);
uniform float alpha = 1.0;

void fragment() {
  ALBEDO = base_color;
  ALPHA = alpha;
}

Finally, just tween the scale with some spring-y easing and we’re good to go!

Environment and Post-Processing


Time to bring it all together! Even though the main mechanic has been created, the scene itself feels boring. Let’s add some things to bring it to life! The main goal is to make the environment feel more interesting, but I learned some interesting things along the way that I want to explore in more depth in the future.

Sky

There are so many options when it comes to creating skies in games. Procedural skies, panoramic .hdr materials, etc. There’s enough material for an entire blog post! I’ll delve into it in the future, but for now I just want something simple. So, I created a sky shader with a simple sun where the main directional light is and a gradient from a blue sky to an orange horizon.

Sky Shader

shader_type sky;

uniform vec4 sky_color : source_color = vec4(1.0);
uniform vec4 horizon_color : source_color = vec4(1.0);
uniform float horizon_intensity = 0.5;

uniform vec4 sun_color : source_color = vec4(1.0, 0.85, 0.65, 1.0);
uniform float sun_size = 0.04;
uniform float sun_intensity = 0.5;

void sky() {
	// Horizon Color
	float height = max(EYEDIR.y, 0.0);
	float gradient = smoothstep(0.0, 0.6, height);
	vec3 horizon = mix(horizon_color.rgb, sky_color.rgb, gradient);
	horizon *= horizon_intensity;
	
	// Sun
	float sun_dot = max(dot(EYEDIR, LIGHT0_DIRECTION), 0.0);
	float sun_glow = pow(sun_dot, 1.0 / sun_size);
	vec3 sun = sun_color.rgb * sun_glow * sun_intensity;
	
	COLOR = clamp(horizon + sun, 0.0, 1.0);
}

Terrain, Cel Shading, and Post-Processing

Once again, I fell into a rabbit hole of finding the best way to implement terrain, exploring heightmaps, procedural generation, and terrain plugins on Godot. At the end of the day, I felt this warranted a separate deep dive, so I settled on a publicly available 3D model from the Youtube video Recreating Zelda: Breath of the Wild in Godot by Clear Code. I also found a sweet material from FreePBR to replace the boulder’s default material.

When making BotW, you can’t do it without cel shading, so I also found a free cel shader that brought everything to life. I would have liked to make my own custom cel shader, but I think a separate deep dive would have been more fitting.

Throw in some depth of field, tonemapping, SSAO, and we’re done!

Terrain and Cel
Shader

Final Result


The end bit was kinda “draw the rest of the owl”, but the full project took a month on and off. Overall, I’m pretty satisfied with the result and got more comfortable creating particles and shaders in Godot!

See the full project here!

References

back-button