Skip to content

Instantly share code, notes, and snippets.

// Pixel (nearest neighbor) shader by nothke
//- Substance 3D Painter Metal/Rough PBR shader
//- ====================================
//-
//- Import from libraries.
import lib-pbr.glsl
import lib-bent-normal.glsl
import lib-emissive.glsl
import lib-pom.glsl
@nothke
nothke / settings.json
Last active October 20, 2023 18:53
My VS Code settings
{
"files.exclude": {
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.meta": true
},
"editor.renderWhitespace": "none",
"csharp.suppressDotnetInstallWarning": true,
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Breakable : MonoBehaviour
{
public float mass = 50;
public float impulseThreshold = 10000;
Collider _collider;
@nothke
nothke / windows_update_unity_license_reactivation.md
Last active January 16, 2022 17:02
How to reactivate your Unity license when you update/change Windows version

Valid as of January 16th, 2022

  • Shutdown Unity Hub
  • Find the license .ulf file and delete it, it will typically be: C:\ProgramData\Unity\Unity_v5.x.ulf
  • Go to your account at Unity ID
  • Navigate to My Seats > scroll down to activations
  • Select your previous activation and remove it (note that this will not delete your license or seats! It will just deactivate the connection to your old-windows-version machine)
  • Now open Unity Hub and it will offer you to activate a free license, just cancel the prompt and proceed to hub main screen
  • Click on "Manage Licenses > Activate New License > Activate with a serial number"
  • Now copy your license serial number from Unity ID account's "My Seats" page, and that should be it!
//#include <iostream>
#include "raylib.h"
#include "rlgl.h"
#include "raymath.h"
Vector3 GetForwardFromMatrix(const Matrix m)
{
return { m.m0, m.m1, m.m2 };
}
@nothke
nothke / xfont_main.cpp
Last active September 19, 2021 00:07
Font experiment, loading from MBFont
#include "pch.h"
#include "noclip_controller.h"
struct FChar
{
char id;
int x, y;
int width, height;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Nothke.SimpleMenu;
using TMPro;
public class ExampleMenu : Menu
{
int intTest = 10;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CarTorque : MonoBehaviour
{
//// Inspector
[Header("Geometry")]
public float wheelbase = 1;
bl_info = {
"name": "Hof Vehicle Export",
"category": "Object",
"blender": (2, 80, 0)
}
import bpy
import os
from bpy.props import IntProperty
from bpy.props import StringProperty
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist>
<array>
<dict>
<key>AudioList</key>
<array>
<dict>
<key>AudioBitrate</key>
<string>128</string>