This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Color32[] gradientLUT; | |
| void PrecalcGradient() | |
| { | |
| gradientLUT = new Color32[256]; | |
| for (int i = 0; i < 256; i++) | |
| { | |
| gradientLUT[i] = gradient.Evaluate((float)i / 255f); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Something wrong with queue | |
| - try setting regular pass to alphatest, then shadows work? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Settings (from UI) | |
| Note: You can use web UI to adjust most settings, OR use appveyor.yml in your repo. | |
| (cannot use both, except for a few limited settings. using yml file allows some advanced settings that are not available in the web UI) | |
| General | |
| - Project name | |
| - Next Build : You only need to adjust this, if you do builds manually (and the previous build or release already exists) | |
| - Branches to build: can set selected branches, "master" | |
| - [x] do not build tags | |
| - [x] Do not build feature branches with open Pull Requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // requires this script: https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Texture/GradientTextureMaker.cs | |
| using UnityEngine; | |
| public class TestGradient : MonoBehaviour | |
| { | |
| public Color[] colors; | |
| public FilterMode filterMode = FilterMode.Point; | |
| public TextureWrapMode wrapMode = TextureWrapMode.Clamp; | |
| public bool isLinear = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| General | |
| - Browser only, always need to login daily | |
| - Browser only, so top bar is wasted space for browser toolbar | |
| - Apparently mo autosave like google cloud spreadsheet, so if browser crashes or is closed, lost all work | |
| - If 2 people edit same row in spreadsheet, only latest changes are saved, without warnings! | |
| - Cannot use ctrl+mousewheel to resize screen (and there is no zoom tool) | |
| - Top banner ads for their own services and tools "show your leadership with this example dashboard check link" | |
| - Spread sheet saving results some kind of page refresh, so your position in the list is lost | |
| - slow scrolling for large "200 rows" grid table (keeps jumping upwards on each scroll down while loading data?) | |
| - Starts to get really slow on bigger (+100 rows) documents, would be just easier and faster to use Excel at this point |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM runs chrome to view index.html in currend directory, with local file access allowed | |
| start chrome.exe "%cd%/index.html" --allow-file-access-from-files |
- WaitForJobCompleted https://forum.unity.com/threads/waitforjobcompleted-custom-yield-instruction-that-waits-for-a-jobhandle.1281557/
- job example https://github.com/Dreaming381/HeartPromoDOTS
- simplest job https://gist.github.com/unitycoder/fd66062389a2ba73af92a9a202f91a05
- updating mesh https://forum.unity.com/threads/using-ecs-to-update-a-mesh.543862/
- texture blur with jobs+burst https://forum.unity.com/threads/contribution-texture2d-blur-in-c.185694/#post-4392625
- satellite images, timelapses etc https://www.watched.earth/
- pixel art normal map generator https://moonfell-rpg.com/pixel-lighter
- eye squinting simulator https://graycrawford.com/engiscope/
- frame rate test https://www.testufo.com/
- simple youtube downloader https://cobalt.tools/
- image to pixel art filter https://x1vi.github.io/pixelArtConverter/
- optimize image https://squoosh.app/ source https://github.com/GoogleChromeLabs/squoosh
- audio to midi https://ai-midi.com/
- all kind of useful resources (for devs) https://threejsresources.com/
- hex editor in browser https://hex.dance/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *** OBJLoader *** | |
| PROBLEM: | |
| default is flat/faceted shading? | |
| need to set shading to 2: | |
| SOLUTION: | |
| objLoader.load('model.obj', function (object) | |
| { | |
| object.traverse( function (child) |