Kuwahara Shader

An asset by PeterEve
The page banner background of a mountain and forest
Kuwahara Shader thumbnail image
Kuwahara Shader thumbnail image
Kuwahara Shader thumbnail image
Kuwahara Shader hero image

Quick Information

0 ratings
Kuwahara Shader icon image
PeterEve
Kuwahara Shader

An oil-painting style shader based on the Kuwahara filter.Available for Sprites, TextureRect and 3D post-processing.

Supported Engine Version
3.4
Version String
1.0
License Version
CC0
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

godot-kuwahara

This is a gdshader implementation of the Kuwahara filter, tuned to produce an oil-painting aesthetic. It is available as both a canvas_item and spatial shader.

Parliament Hill, Ottawa

README README (https://commons.wikimedia.org/wiki/File:Tulip_festival_in_Ottawa_-_2019_(47925742658).jpg)

Le Mont-Saint-Michel

README README (https://commons.wikimedia.org/wiki/File:Mont-Saint-Michel_vu_du_ciel.jpg)

Dallol

README README (https://commons.wikimedia.org/wiki/File:The_hydrothermal_system_of_Dallol.png)

Chateau de Chillon and Dents

README README (https://commons.wikimedia.org/wiki/File:001_Chateau_de_Chillon_and_Dents_du_Midi_Photo_by_Giles_Laurent.jpg)

Godot Third Person Shooter Demo

README README README README (https://godotengine.org/asset-library/asset/678)

Notes

Changing Kernel Size

The shader comes with 4 pre-made circular kernels to choose from: 3, 4, 5 and 6 pixels wide. The examples above were captured using the default 4 pixel kernel. To use a different kernel size, rename at lines 15, 17 and 55. The larger the kernel, the slower the shader.

Use in Spatial Scenes

Follow the Full Screen Quad instructions found in this tutorial. The shader has undergone significant optimisation and should be able to achieve 1920x1080 60fps on any modern computer at the supplied kernel sizes.

Modifications to the Basic Algorithm

  • Circular kernels to reduce block artifacts
  • Approximate standard deviation to improve performance

An oil-painting style shader based on the Kuwahara filter.
Available for Sprites, TextureRect and 3D post-processing.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Kuwahara Shader icon image
PeterEve
Kuwahara Shader

An oil-painting style shader based on the Kuwahara filter.Available for Sprites, TextureRect and 3D post-processing.

Supported Engine Version
3.4
Version String
1.0
License Version
CC0
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers