This file contains 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
/* | |
This is a simple implementation of height map generation with fractal noise, and it's compatible with Unity's terrain. | |
Also, it's a one filer, ready to be copy-pasted into your Unity project and doesn't require any additional libs to run. | |
Attach NoiseGenerationSample to any GO, add a reference to the Terrain, and pick Generate from the component's context menu. | |
The code is quite flexible and can be fairly easy modified and adapted to your needs. Check out my GitHub for more :) | |
Copyright (c) 2024 Michał Biernat @m-biernat, licensed under the MIT License. | |
*/ | |
using UnityEngine; |
This file contains 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
// This is a class to encode/decode Texture2D and Base64 formats (Unity). | |
// Copyright (c) 2023 Michał Biernat @m-biernat, licensed under the MIT License. | |
using System; | |
using UnityEngine; | |
public static class TextureEncoder | |
{ | |
public static string Texture2DToBase64(Texture2D texture) | |
{ |
This file contains 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
// This is a simple Unity Editor tool that converts trees in a Terrain (with multi-terrain support) into GameObjects. | |
// It should be placed in the Assets/Editor directory. Do not use it without any VCS! | |
// Copyright (c) 2023 Michał Biernat @m-biernat, licensed under the MIT License. | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
public class TreeToGameObjectConverter : EditorWindow | |
{ |
This file contains 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
; Script generated by the Inno Setup Script Wizard. | |
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | |
#define MyAppName "App" | |
#define MyAppAuthor "Author" | |
#define MyAppExeName "App.exe" | |
#define MyAppVersion "1.0" | |
#define MyAppOutputName "app-win64-installer" | |
[Setup] |