Skip to content

Instantly share code, notes, and snippets.

View ouerkakaChango's full-sized avatar

Chango ouerkakaChango

  • Shanghai
View GitHub Profile
@ouerkakaChango
ouerkakaChango / UnityXHouVATWindow.cs
Created January 11, 2024 21:09
Editor for handle XHouVAT
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;
using System.IO;
public class XHouVATEditorWindow : EditorWindow
{
@ouerkakaChango
ouerkakaChango / outputNormalTxt.py
Created January 11, 2024 21:01
HoudiniExportNormalFrames
import hou
def is_get_normal_available():
"""Checks if the `getNormal()` method is available."""
return hasattr(hou.Point, 'getNormal')
# 获取你想要输出法线的几何体
geo = hou.node('/obj/grid1/VATIN').geometry()
# 打开一个新的txt文件用于写入
@ouerkakaChango
ouerkakaChango / XTransformUtility.cs
Created June 27, 2023 10:42
Unity extract from Matrix4x4
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XUtility
{
public static class XTransformUtility
{
public static Vector3 PosFromMat4(in Matrix4x4 m)
{
@ouerkakaChango
ouerkakaChango / UnityEditor-OnSceneGUI-Always.cs
Last active June 27, 2023 10:39
Make Unity Editor mode OnSceneGUI Always get called
[ExecuteAlways]
public class NeverEndingUpdateCallsInEditor : MonoBehaviour
{
void OnDrawGizmos()
{
// Your gizmo drawing thing goes here if required...
#if UNITY_EDITOR
// Ensure continuous Update calls.
@ouerkakaChango
ouerkakaChango / Longyi.prompt
Created June 14, 2023 03:37
Stable Diffusion prompt for Lonyi concept art
//No.15
katana zero, yellow hair,man's black suits,one man,4k,handsome,ponytail, cyberpunk,night,sword fight posture, purple and dark blue style,yellow flash light
ugly,low quality, woman,female
//No.15 in void suit
katana, agent, yellow hair,one man,4k,ponytail, vietnam forest,sword fight posture, asian,green uniform,cape, soldier
ugly,low quality, woman,female,cute,young
@ouerkakaChango
ouerkakaChango / GaussianBlur.cs
Last active May 27, 2023 09:21
[Unity] Gaussian Blur: Built-in Pipeline ("postprocessing stack(v2) package")
using System;
using UnityEngine.Serialization;
//https://blog.csdn.net/PangNanGua/article/details/85261212
namespace UnityEngine.Rendering.PostProcessing
{
[Serializable]
[PostProcess(typeof(GaussianBlurRenderer), UnityEngine.Rendering.PostProcessing.PostProcessEvent.AfterStack, "XCPostProcess/GaussianBlur", true)]
public class GaussianBlur : PostProcessEffectSettings
{