Everyday Unity
1.18K subscribers
169 photos
61 videos
42 files
2.38K links
A game developer and tech lead in a top grossing company posting Unity, programming, and gamedev related stuff that I find interesting
Website: https://gamedev.center

Most used tags are:
#performance
#shader
#interview

Author: @alexmtr
Download Telegram
Scriptable Renderer Feature

A barebones sample implementation of a scriptable renderer feature for Unity's scriptable render pipeline

https://samdriver.xyz/article/scriptable-render

#srp #rendering
πŸ‘1
Culling system and effects for Top-Down games

Simple fade out/culling system for top down game with 3 different shader-based effects to fade out objects that get in the way of the player seeing their avatar

https://www.patreon.com/posts/culling-system-60214085

#cull #vfx
πŸ‘2
Polygon Clipping (Part 1 & 2)

Polygon clipping is an interesting problem: how do you intersect, union, or diff two polygons?
The Greiner-Hormann clipping algorithm is quite beautiful and intuitive. However the Greiner-Hormann clipping algorithm cannot deal with coincident lines. This turns out to be a huge pain – so there is part 2 that works for all polygons.

https://sean.cm/a/polygon-clipping-pt1
https://sean.cm/a/polygon-clipping-pt2

#polygonclipping #clipping
πŸ‘2
This media is not supported in your browser
VIEW IN TELEGRAM
Bottled Galaxy (Sphere Tracing)

This one uses sphere tracing and signed distance functions. You can learn more about them here from the article by Inigo Quilez: https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm

Source Code: https://github.com/Alligrater/Shader-Practice/tree/main/Assets/EPS/SceneRenders/BottleOfStars

#vfx #potion #shader #bottle
πŸ‘2
Improve C# code performance with Span<T>

Obviously fast Span<T> is not available in Unity yet, but the post has an interesting point about how applying domain knowledge could result in better performance than just using new fancy stuff

https://blog.ndepend.com/improve-c-code-performance-with-spant/

#span #optimization #parsing
πŸ‘3
Immediate Window – Interact with your Code while Debugging in Rider

In case you missed this feature like I did: the Immediate Window in Rider debugger. A valuable part of the debugging experience is experimentation, modifying variables and determining whether the outcomes were what we expected. The post has a simple example, would be glad to hear your ideas how it could be helpful in the comments.

https://blog.jetbrains.com/dotnet/2020/10/15/immediate-window-interact-with-your-code-while-debugging-in-rider/

#rider #debug
πŸ‘2
Sins Of Code Readability

Sin 1 Favoring Cleverness over Clarity.
Sin 1a: Brevity is not clever-ity.
Sin 2: Overly Generic Function Signatures.
Sin 3: Comments Inside Functions.
Sin 3a: Soft Code is a Soft Sin.
Sin 4: Comments Instead of Self-Documentation.
Sin 5: Failing The Squint Test.

http://enemyhideout.com/2022/03/sins-of-code-readability/

#cleancode
πŸ‘2
A non-standard book list for software developers

I would personally add "The Design of Everyday Things" by Don Norman to this list too.

https://mihaiolteanu.me/books.html

#book #theory #personaldevelopment
πŸ‘2