-
Vertex Function:
- Input: Model Space (Local Space)
- Output: Clip Space
-
Fragment Function:
- Input: View Space (Camera Space)
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
import xml.etree.ElementTree as ET | |
import argparse | |
import sys | |
import os | |
from pathlib import Path | |
def resize_svg(input_file, width=None, height=None): | |
""" | |
Resize an SVG by wrapping its contents in a transform that scales to new dimensions | |
while preserving aspect ratio. |
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
import xml.etree.ElementTree as ET | |
import argparse | |
import sys | |
def resize_svg(input_file, width=None, height=None): | |
""" | |
Resize an SVG by wrapping its contents in a transform that scales to new dimensions | |
while preserving aspect ratio. | |
Args: |
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
## | |
## In FontForge( https://fontforge.org ) with font of choice open press Ctrl + . to open the script dialog, paste and run. | |
## You will be asked to save a file. Font will be put in the selected folder with the prefix of the name entered. | |
# | |
## Recommend: Symbols NerdFont at https://www.nerdfonts.com/font-downloads | |
## | |
import os | |
import pprint |
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
def parse(lines): | |
width = len(lines[0]) | |
height = len(lines) | |
for ypos, line in enumerate(lines): | |
for xpos, c in enumerate(line): | |
if c != "X": | |
continue |
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
from collections import OrderedDict | |
import socket | |
import sys | |
import re | |
def extract_first_hostname(text): | |
""" | |
Extract the first hostname from a given string. | |
Args: |
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
import HavokPhysics, { | |
HavokPhysicsWithBindings, | |
Result, HP_ShapeId | |
} from "@babylonjs/havok"; | |
// Global variable to store the initialized Havok physics engine | |
globalThis['HK'] = (await HavokPhysics()) as HavokPhysicsWithBindings; | |
const HK : HavokPhysicsWithBindings = globalThis.HK; | |
// Define helper functions for common physics types (Vector3, Quaternion, etc.) |
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
import bpy | |
import bmesh | |
from mathutils import Vector | |
from bpy.props import BoolProperty, FloatVectorProperty | |
from bpy.types import Operator, Panel, PropertyGroup | |
####################### | |
# Props | |
####################### |
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
@echo off | |
if "%~1"=="" ( | |
set "ENV_FILE=%CD%\.env" | |
) else ( | |
set "ENV_FILE=%~1" | |
) | |
if not exist "%ENV_FILE%" ( | |
echo Error: %ENV_FILE% file not found | |
exit /b 1 |
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
import bpy | |
# https://docs.blender.org/api/current/bpy.types.Depsgraph.html | |
# https://docs.blender.org/api/current/bpy.types.DepsgraphObjectInstance.html | |
def report_instances(obj): | |
""" | |
Reports the instances under an object in the Blender scene. | |
Including unrealized Geometry Node generated instances. |
NewerOlder