-
Vertex Function:
- Input: Model Space (Local Space)
- Output: Clip Space
-
Fragment Function:
- Input: View Space (Camera Space)
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
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 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 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 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. |
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
import bpy | |
import gpu | |
from gpu_extras.batch import batch_for_shader | |
import mathutils | |
import math | |
# from pprint import pprint ###DEBUG | |
class ImageGalleryOverlay(bpy.types.Operator): | |
bl_idname = "image.image_gallery_overlay" |
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
# | |
# Add a tool to vertex paint mode that paints by FACE | |
# | |
import bpy | |
import bmesh | |
from mathutils import Vector | |
from bpy.types import WorkSpaceTool | |
from bl_ui.space_toolsystem_common import ToolDef | |
from bpy_extras import view3d_utils |
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
import pygame | |
import pygame_gui | |
import math | |
import pyaudio | |
import struct | |
SCREEN_X = 800 | |
SCREEN_Y = 600 | |
SCOPE_DIMS = (SCREEN_X//4, SCREEN_Y // 4) |
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
import pygame | |
import pygame_gui | |
import math | |
import pyaudio | |
import struct | |
SCREEN_X = 800 | |
SCREEN_Y = 600 | |
SCOPE_DIMS = (SCREEN_X//4, SCREEN_Y // 4) |
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
import pygame | |
import numpy as np | |
SCREEN_X = 256 | |
SCREEN_Y = 256 | |
GRID_SIZE = SCREEN_X //6 | |
CELL_W = SCREEN_X // GRID_SIZE | |
CELL_H = SCREEN_Y // GRID_SIZE |
NewerOlder