UnityCsReference
Graphics
Our great sponsors
UnityCsReference | Graphics | |
---|---|---|
58 | 22 | |
11,356 | 620 | |
1.2% | - | |
7.4 | 9.9 | |
3 days ago | over 3 years ago | |
C# | C# | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
UnityCsReference
-
Anyone know what Unity's Matrix4x4 looks like internally?
I've checked their CS reference code on their Github, both here and here, but I want to dive a little deeper - specifically, I want to know what they're actually doing when determining validity of the Matrix4x4.
-
Torn between chossing Unity & C# or going UE5 and C++. What made you choose unity?
Yep, but beyond just decompiling it, the c# layer of code is on GitHub: https://github.com/Unity-Technologies/UnityCsReference
- 2 minutes of silence for those who bought RTX 3070 and RTX 3070Ti
-
Do you use System.Object.ReferenceEquals() ?
https://github.com/Unity-Technologies/UnityCsReference/blob/master/Runtime/Export/Scripting/UnityEngineObject.bindings.cs (after 2019.1)
-
Custom method attribute for Animation Event Functions
The code where the method filtering for the Animation Event Inspector is done, is here (line 190). Is it possible to do something like this? That repository explicitly says:
- Can’t find operation
-
Bounds.Encapsulate precision loss?
No reason, you can look at the source of encapsulate
-
Modify Project Setting's "Default Quality Level" by script
There isn't really a straight forward way to do this, even the QualitySettings editor uses Serialised Properties to get at the data. (Line 343 in QualitySettingsEditor)
-
Has any indie dev got (read-only) access to Unity source? How much did it cost?
This is awesome, thank you! I'm most curious about their Runtime
-
Is C++ still the language when entering 3D programming in 2023?
I think if you want to get into graphics programming you do want to work with OpenGL and similar things, because at the very least you need to understand it all (and decide what parts of engines to use and what to ignore when you get to whole games). It's also worth saying that while you can only publicly get the references in Unity you do get source access at the higher subscription tiers you'd use at a game studio.
Graphics
-
How can I make my grass not cast any shadows?
URP: https://github.com/Unity-Technologies/Graphics/blob/master/Packages/com.unity.render-pipelines.universal/Shaders/Lit.shader
- Compiling shader variants taking forever. Did I do something wrong?
- Post Process - Uber Shader - What's it do? Can I remove it?
-
Are there any resources out there for anyone looking to take a deep dive into Unity's different systems and components? Like a really deep dive?
Graphics (shaders mostly) https://github.com/Unity-Technologies/Graphics
-
DaVinci Resolve 18
it already is happening (kinda), they are modularizing their engine, and all the new parts are made open source
biggest part what their graphics stack https://github.com/Unity-Technologies/Graphics (only the scripting part)
competition is growing, unreal is fully open source, and more and more people have been asking for the source, there was even some drama few years ago when unity DMCA'd (if i remember correctly) a reference source code of unity engine (decompiled) on github, then unity made it officially available on their github: https://github.com/Unity-Technologies/UnityCsReference after users complained about it
wich already proved effective and caused them to fix a huge performance issue shortly after: https://github.com/Unity-Technologies/UnityCsReference/pull/...
-
I made an Iridescence Shader for Unity URP 2019.4 and 2020.3
https://github.com/Unity-Technologies/Graphics/blob/cfd0466579c654441290c0c1645b1f083c4de886/com.unity.render-pipelines.core/ShaderLibrary/BSDF.hlsl https://github.com/CJT-Jackton/URP-Iridescence-ExampleThis is what i used
-
Learning Unity: looking for an extremely detailed and fully broken down tutorial
It also depends on what you want to learn, theres many topics that in a AAA production are made by completely different people - sub topics if you so will: URP and HDRP has public source code for all the shaders, but theres alot of internal Unity Macros that are not well documented: https://github.com/Unity-Technologies/Graphics
-
Working on a cel shader supporting multiple lights, and with specular as well as rim highlights
The light intensity falloff is still something I'm working on. The implementation utilizes structs and functions from the Unity URP library, more specifically the RealtimeLights.hlsl file (https://github.com/Unity-Technologies/Graphics/blob/master/com.unity.render-pipelines.universal/ShaderLibrary/RealtimeLights.hlsl). Within the light struct there exists variables for both distance attenuation and shadow attenuation, in short this library calculates how much the light intensity should decrease/increase based on distance, and then it's up to the cel shader to properly threshold this value in a correct way.
-
Finding Your Home in Game Graphics Programming
Unity render pipeline source is available here: https://github.com/Unity-Technologies/Graphics
All the C# code running in the editor and runtimes is here:
- Is the unlit shader script supported with URP? Do I need to make any change if I use it?
What are some alternatives?
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
URP-Iridescence-Example - 🔮 An example of iridescence shader in URP.
ILSpy - .NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
aseprite - Animated sprite editor & pixel art tool (Windows, macOS, Linux)
Raylib-CsLo - autogen bindings to Raylib 4.x and convenience wrappers on top. Requires use of `unsafe`
ShaderGraph - Unity ShaderGraph project
tinyraycaster - 486 lines of C++: old-school FPS in a weekend
bitmappers-companion - zine/book about bitmap drawing algorithms and math with code examples in Rust
astc-encoder - The Arm ASTC Encoder, a compressor for the Adaptive Scalable Texture Compression data format.
blender-lightprobes - Spherical harmonic light probes for Blender's Cycles render engine
dotNext - Next generation API for .NET