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 hou | |
| import viewerstate.utils as su | |
| class State(object): | |
| CONTEXT_MENU_NAME = "foo_menu" | |
| MENU_BAR_CODE = "enter_bar" | |
| MENU_BAZ_CODE = "enter_baz" |
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
| Shader "00_UnlitBase" | |
| { | |
| Properties | |
| { | |
| } | |
| SubShader | |
| { | |
| Tags | |
| { | |
| "RenderPipeline" = "UniversalPipeline" |
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
| #usda 1.0 | |
| class Material "_base" | |
| { | |
| # ======================== | |
| # Connections | |
| # ======================== | |
| # USD Connections (usdview / Houdini GL) | |
| token outputs:displacement.connect = </_base/usdPreviewSurface.outputs:displacement> |
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
| // Fresnel effects shader | |
| float saturate(float in) | |
| { | |
| return clamp(in, 0, 1); | |
| } | |
| shader fresnel | |
| [[ | |
| string help = "basic fresnel effect", |
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
| // Place at Runtime asmdef | |
| #nullable enable | |
| using System; | |
| using System.Diagnostics; | |
| using UnityEngine; | |
| [AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] | |
| [Conditional("UNITY_EDITOR")] |
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
| using System.IO; | |
| using System.Runtime.CompilerServices; | |
| using UnityEditor; | |
| using Sirenix.OdinInspector; | |
| using Sirenix.OdinInspector.Editor; | |
| using Python.Runtime; | |
| using UnityEditor.Scripting.Python; | |
| public class HelloWorld : OdinEditorWindow | |
| { |
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
| kernel Cross : ImageComputationKernel<ePixelWise> { | |
| // Input image A | |
| Image<eRead, eAccessPoint, eEdgeClamped> A; | |
| // Input image B | |
| Image<eRead, eAccessPoint, eEdgeClamped> B; | |
| // Output image | |
| Image<eWrite, eAccessPoint> dst; | |
| local: |