mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

Okhnid

:godot: Made some fancy normalmap-supporting lights in for Multiversal Affairs!

It is inspired by GIFs corrupting my early smooth lights into something similar.

It works by snapping colors by a specific value. I can set the value as a uniform.

#godot#indiedev#2d

I had to write a custom light . Since I can't use 's OG light function inside of mine as of now, I ported it into gdshader from glsl.

I took it from servers/rendering/renderer_rd/shaders/canvas.glsl. Something makes it slightly dimmer, but it's mostly consistent with the original.

You can grab my shader at pastebin.com/BP2tUwZa

It's pretty unorganized and has some unused variables, but it's workable.

Pastebinshader_type canvas_item;vec4 closest(vec4 n, float x){ n = n + x/vec4 - Pastebin.comPastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.